]> granicus.if.org Git - llvm/commitdiff
[NFC] Fix unused var in release builds
authorJordan Rupprecht <rupprecht@google.com>
Wed, 16 Oct 2019 23:09:56 +0000 (23:09 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Wed, 16 Oct 2019 23:09:56 +0000 (23:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375053 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopUnswitch.cpp

index 6749cda245df3eea9d83abab4a72061b3a758d5f..b410df0c5f68c642cccaaa049800b77e29ba058d 100644 (file)
@@ -1616,6 +1616,7 @@ void LoopUnswitch::SimplifyCode(std::vector<Instruction*> &Worklist, Loop *L) {
         // If BI's parent is the only pred of the successor, fold the two blocks
         // together.
         BasicBlock *Pred = BI->getParent();
+        (void)Pred;
         BasicBlock *Succ = BI->getSuccessor(0);
         BasicBlock *SinglePred = Succ->getSinglePredecessor();
         if (!SinglePred) continue;  // Nothing to do.