forked from OSchip/llvm-project
Add comment to emphasize that the while body is empty.
llvm-svn: 66115
This commit is contained in:
parent
f5d8ba86cc
commit
0bf1ded7bd
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue