diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 78454645b32..7f2060fbfc8 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -816,7 +816,7 @@ bool llvm::SimplifyCFG(BasicBlock *BB) { if (BranchInst *PBI = dyn_cast(OnlyPred->getTerminator())) if (PBI->isConditional() && PBI->getCondition() == BI->getCondition() && - PBI->getSuccessor(0) != BB || PBI->getSuccessor(1) != BB) { + (PBI->getSuccessor(0) != BB || PBI->getSuccessor(1) != BB)) { // Okay, the outcome of this conditional branch is statically // knowable. Delete the outgoing CFG edge that is impossible to // execute.