commit | 23511a96d9c8e53daafe3c6f56ccfd5b5be0f4b0 | [log] [tgz] |
---|---|---|
author | Jordan Rupprecht <rupprecht@google.com> | Wed Oct 16 23:09:56 2019 +0000 |
committer | Jordan Rupprecht <rupprecht@google.com> | Wed Oct 16 23:09:56 2019 +0000 |
tree | aa4d52e8ec0f45993fcf94cd5b065832d6c2eaea | |
parent | 8cf643e1230837ba5115489ae8e4f87755b158f9 [diff] |
[NFC] Fix unused var in release builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375053 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index 6749cda..b410df0 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -1616,6 +1616,7 @@ // 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.