aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Transforms/Scalar/LoopInterchange.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
index 523bac7..7a4ae2e 100644
--- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
@@ -1390,6 +1390,8 @@ bool LoopInterchangeTransform::adjustLoopBranches() {
// Make sure we have no other PHIs.
auto InnerPhis = drop_begin(InnerLoopHeader->phis(), 1);
auto OuterPhis = drop_begin(OuterLoopHeader->phis(), 1);
+ (void) InnerPhis;
+ (void) OuterPhis;
assert(begin(InnerPhis) == end(InnerPhis) && "Unexpected PHIs in inner loop");
assert(begin(OuterPhis) == end(OuterPhis) && "Unexpected PHis in outer loop");