[NFC] Fix unused var in release builds

llvm-svn: 375053
This commit is contained in:
Jordan Rupprecht 2019-10-16 23:09:56 +00:00
parent 2518166042
commit a44bc401b5
1 changed files with 1 additions and 0 deletions

View 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.