Skip to content

Commit 17e926e

Browse files
committed
[Basic] Don't use defined(LLVM_ENABLE_STATS) as it can be set to 0
LLVM_ENABLE_STATS can be defined to 0 since https://reviews.llvm.org/D91094. rdar://73834542
1 parent 2d2a810 commit 17e926e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Basic/Statistic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ UnifiedStatsReporter::~UnifiedStatsReporter()
703703
// compile-time) so we sequence printing our own stats and LLVM's timers
704704
// manually.
705705

706-
#if !defined(NDEBUG) || defined(LLVM_ENABLE_STATS)
706+
#if !defined(NDEBUG) || LLVM_ENABLE_STATS
707707
publishAlwaysOnStatsToLLVM();
708708
PrintStatisticsJSON(ostream);
709709
TimerGroup::clearAll();

0 commit comments

Comments
 (0)