diff --git a/llvm/lib/Transforms/Scalar/CondPropagate.cpp b/llvm/lib/Transforms/Scalar/CondPropagate.cpp index 9c753df79e66..7d5e581b22eb 100644 --- a/llvm/lib/Transforms/Scalar/CondPropagate.cpp +++ b/llvm/lib/Transforms/Scalar/CondPropagate.cpp @@ -153,7 +153,7 @@ void CondProp::SimplifyPredecessors(BranchInst *BI) { return; BasicBlock::iterator BBI = BB->begin(); BasicBlock::iterator BBE = BB->end(); - while (BBI != BBE && isa(++BBI)); + while (BBI != BBE && isa(++BBI)) ; if (&*BBI != BI) return; @@ -192,7 +192,7 @@ void CondProp::SimplifyPredecessors(SwitchInst *SI) { return; BasicBlock::iterator BBI = BB->begin(); BasicBlock::iterator BBE = BB->end(); - while (BBI != BBE && isa(++BBI)); + while (BBI != BBE && isa(++BBI)) ; if (&*BBI != SI) return;