Skip to content

Commit 91dba22

Browse files
authored
Fix NDEBUG Wundef warning; NFC (#159539)
The `NDEBUG` macro is tested for defined-ness everywhere else. The instance here triggers a warning when compiling with `-Wundef`.
1 parent b59d410 commit 91dba22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ std::pair<uint32_t, uint32_t> getNumCountersAndCallsites(const Function &F) {
9898
"same total nr of callsites parameter");
9999
NumCallsites = V;
100100
}
101-
#if NDEBUG
101+
#ifdef NDEBUG
102102
if (NumCounters && NumCallsites)
103103
return std::make_pair(NumCounters, NumCallsites);
104104
#endif

0 commit comments

Comments
 (0)