Skip to content

Commit 1aacf58

Browse files
committed
[profile] Unbreak Fuchsia/Windows after D68351
Continuous mode is not yet supported on Fuchsia/Windows, however an error should not be reported unless the user attempted to actually enable continuous mode.
1 parent ea13683 commit 1aacf58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-rt/lib/profile/InstrProfilingFile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,12 @@ static void unlockProfile(int *ProfileRequiresUnlock, FILE *File) {
435435
}
436436

437437
static void initializeProfileForContinuousMode(void) {
438-
#if defined(__Fuchsia__) || defined(_WIN32)
439-
PROF_ERR("%s\n", "Continuous mode not yet supported on Fuchsia or Windows.");
440-
#else // defined(__Fuchsia__) || defined(_WIN32)
441438
if (!__llvm_profile_is_continuous_mode_enabled())
442439
return;
443440

441+
#if defined(__Fuchsia__) || defined(_WIN32)
442+
PROF_ERR("%s\n", "Continuous mode not yet supported on Fuchsia or Windows.");
443+
#else // defined(__Fuchsia__) || defined(_WIN32)
444444
/* Get the sizes of various profile data sections. Taken from
445445
* __llvm_profile_get_size_for_buffer(). */
446446
const __llvm_profile_data *DataBegin = __llvm_profile_begin_data();

0 commit comments

Comments
 (0)