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 | e562149cdb819744d818146ccf6e4728421a7955 (patch) | |
tree | 6210f731e61a67c2b4f0aeaa015fa22728f87189 | |
parent | a0a6637b2513935153e1d09f2a55bc14c85ba182 (diff) | |
download | llvm-e562149cdb819744d818146ccf6e4728421a7955.tar.gz llvm-e562149cdb819744d818146ccf6e4728421a7955.tar.bz2 llvm-e562149cdb819744d818146ccf6e4728421a7955.tar.xz |
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
-rw-r--r-- | lib/Transforms/Scalar/CondPropagate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/CondPropagate.cpp b/lib/Transforms/Scalar/CondPropagate.cpp index 7d5e581b22..45bc629e20 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<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; |