[LoopInterchange] Fix unused variables in release build
authorFlorian Hahn <florian.hahn@arm.com>
Thu, 1 Nov 2018 19:51:13 +0000 (19:51 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Thu, 1 Nov 2018 19:51:13 +0000 (19:51 +0000)
llvm-svn: 345881

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

index 523bac79b69df1c33c143a5f7b50d653bce3c1ee..7a4ae2eb30307a590ad805f4da4c37e17203456f 100644 (file)
@@ -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");