diff options
| author | Bill Wendling <isanbard@gmail.com> | 2009-03-05 01:08:35 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2009-03-05 01:08:35 +0000 |
| commit | 0bf1ded7bddd11ddf050b403ef75f5778da512ec (patch) | |
| tree | bffe56625ae0d5ec4c251feb821ef6bf2755795d /llvm/lib/Transforms/Scalar/CondPropagate.cpp | |
| parent | f5d8ba86ccbb82cdfbb263410e89284d407b584f (diff) | |
| download | bcm5719-llvm-0bf1ded7bddd11ddf050b403ef75f5778da512ec.tar.gz bcm5719-llvm-0bf1ded7bddd11ddf050b403ef75f5778da512ec.zip | |
Add comment to emphasize that the while body is empty.
llvm-svn: 66115
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CondPropagate.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/CondPropagate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/CondPropagate.cpp b/llvm/lib/Transforms/Scalar/CondPropagate.cpp index 7d5e581b22e..45bc629e20e 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<DbgInfoIntrinsic>(++BBI)) ; + while (BBI != BBE && isa<DbgInfoIntrinsic>(++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<DbgInfoIntrinsic>(++BBI)) ; + while (BBI != BBE && isa<DbgInfoIntrinsic>(++BBI)) /* empty */; if (&*BBI != SI) return; |

