From 1aacf58819a27f428a46ce839a0ee797af03c1fd Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Tue, 19 Nov 2019 12:29:56 -0800 Subject: [PATCH] [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. --- compiler-rt/lib/profile/InstrProfilingFile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c index 208ae58..875cdf0 100644 --- a/compiler-rt/lib/profile/InstrProfilingFile.c +++ b/compiler-rt/lib/profile/InstrProfilingFile.c @@ -435,12 +435,12 @@ static void unlockProfile(int *ProfileRequiresUnlock, FILE *File) { } static void initializeProfileForContinuousMode(void) { -#if defined(__Fuchsia__) || defined(_WIN32) - PROF_ERR("%s\n", "Continuous mode not yet supported on Fuchsia or Windows."); -#else // defined(__Fuchsia__) || defined(_WIN32) if (!__llvm_profile_is_continuous_mode_enabled()) return; +#if defined(__Fuchsia__) || defined(_WIN32) + PROF_ERR("%s\n", "Continuous mode not yet supported on Fuchsia or Windows."); +#else // defined(__Fuchsia__) || defined(_WIN32) /* Get the sizes of various profile data sections. Taken from * __llvm_profile_get_size_for_buffer(). */ const __llvm_profile_data *DataBegin = __llvm_profile_begin_data(); -- 2.7.4