@@ -1357,7 +1357,7 @@ void PreservedCFGCheckerInstrumentation::registerCallbacks(
1357
1357
bool Registered = false ;
1358
1358
PIC.registerBeforeNonSkippedPassCallback ([this , &MAM, Registered](
1359
1359
StringRef P, Any IR) mutable {
1360
- #if LLVM_ENABLE_ABI_BREAKING_CHECKS
1360
+ #ifdef LLVM_ENABLE_ABI_BREAKING_CHECKS
1361
1361
assert (&PassStack.emplace_back (P));
1362
1362
#endif
1363
1363
(void )this ;
@@ -1386,7 +1386,7 @@ void PreservedCFGCheckerInstrumentation::registerCallbacks(
1386
1386
1387
1387
PIC.registerAfterPassInvalidatedCallback (
1388
1388
[this ](StringRef P, const PreservedAnalyses &PassPA) {
1389
- #if LLVM_ENABLE_ABI_BREAKING_CHECKS
1389
+ #ifdef LLVM_ENABLE_ABI_BREAKING_CHECKS
1390
1390
assert (PassStack.pop_back_val () == P &&
1391
1391
" Before and After callbacks must correspond" );
1392
1392
#endif
@@ -1395,7 +1395,7 @@ void PreservedCFGCheckerInstrumentation::registerCallbacks(
1395
1395
1396
1396
PIC.registerAfterPassCallback ([this , &MAM](StringRef P, Any IR,
1397
1397
const PreservedAnalyses &PassPA) {
1398
- #if LLVM_ENABLE_ABI_BREAKING_CHECKS
1398
+ #ifdef LLVM_ENABLE_ABI_BREAKING_CHECKS
1399
1399
assert (PassStack.pop_back_val () == P &&
1400
1400
" Before and After callbacks must correspond" );
1401
1401
#endif
0 commit comments