aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-06-04 23:34:43 -0700
committerFangrui Song <i@maskray.me>2021-06-04 23:34:43 -0700
commit06e7de795bf19b950693b8dc86fa36f355dc6760 (patch)
tree8769513603d011d0a6074ce202539670918b166b /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
parent1309c181a85233c80051544f43008963c3d5fe71 (diff)
downloadllvm-06e7de795bf19b950693b8dc86fa36f355dc6760.zip
llvm-06e7de795bf19b950693b8dc86fa36f355dc6760.tar.gz
llvm-06e7de795bf19b950693b8dc86fa36f355dc6760.tar.bz2
Fix some -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=off build
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopRotationUtils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
index 651aaa3..ff7905be 100644
--- a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
@@ -637,6 +637,7 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
}
assert(SplitLatchEdge &&
"Despite splitting all preds, failed to split latch exit?");
+ (void)SplitLatchEdge;
} else {
// We can fold the conditional branch in the preheader, this makes things
// simpler. The first step is to remove the extra edge to the Exit block.