aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2024-10-03 01:24:14 +0200
committerGitHub <noreply@github.com>2024-10-03 01:24:14 +0200
commit6c7a3f80e75de36f2642110a077664e948d9e7e3 (patch)
treed5a5010057078eee0af8d691fac27d6e1a88a91d /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
parente3686f1e44676fa28789c6732076b8998be23527 (diff)
downloadllvm-6c7a3f80e75de36f2642110a077664e948d9e7e3.zip
llvm-6c7a3f80e75de36f2642110a077664e948d9e7e3.tar.gz
llvm-6c7a3f80e75de36f2642110a077664e948d9e7e3.tar.bz2
Fix LLVM_ENABLE_ABI_BREAKING_CHECKS macro check: use #if instead of #ifdef (#110938)
This macros is always defined: either 0 or 1. The correct pattern is to use #if. Re-apply #110185 with more fixes for debug build with the ABI breaking checks disabled.
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyIndVar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
index ff13c06..7fca1a6 100644
--- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -1024,7 +1024,7 @@ bool simplifyLoopIVs(Loop *L, ScalarEvolution *SE, DominatorTree *DT,
LoopInfo *LI, const TargetTransformInfo *TTI,
SmallVectorImpl<WeakTrackingVH> &Dead) {
SCEVExpander Rewriter(*SE, SE->getDataLayout(), "indvars");
-#ifndef NDEBUG
+#if LLVM_ENABLE_ABI_BREAKING_CHECKS
Rewriter.setDebugType(DEBUG_TYPE);
#endif
bool Changed = false;