From e562149cdb819744d818146ccf6e4728421a7955 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 5 Mar 2009 01:08:35 +0000 Subject: [PATCH] Add comment to emphasize that the while body is empty. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66115 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/CondPropagate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Scalar/CondPropagate.cpp b/lib/Transforms/Scalar/CondPropagate.cpp index 7d5e581b22e..45bc629e20e 100644 --- a/lib/Transforms/Scalar/CondPropagate.cpp +++ b/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)) /* empty */; 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)) /* empty */; if (&*BBI != SI) return;