Add comment to emphasize that the while body is empty.
authorBill Wendling <isanbard@gmail.com>
Thu, 5 Mar 2009 01:08:35 +0000 (01:08 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 5 Mar 2009 01:08:35 +0000 (01:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66115 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/CondPropagate.cpp

index 7d5e581b22ebf20958c7ab0e936bbcfa843d0e79..45bc629e20e5075b121c38c3af8c2d9ae6dd6eb1 100644 (file)
@@ -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;