mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
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
This commit is contained in:
parent
a0a6637b25
commit
e562149cdb
@ -153,7 +153,7 @@ void CondProp::SimplifyPredecessors(BranchInst *BI) {
|
|||||||
return;
|
return;
|
||||||
BasicBlock::iterator BBI = BB->begin();
|
BasicBlock::iterator BBI = BB->begin();
|
||||||
BasicBlock::iterator BBE = BB->end();
|
BasicBlock::iterator BBE = BB->end();
|
||||||
while (BBI != BBE && isa<DbgInfoIntrinsic>(++BBI)) ;
|
while (BBI != BBE && isa<DbgInfoIntrinsic>(++BBI)) /* empty */;
|
||||||
if (&*BBI != BI)
|
if (&*BBI != BI)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ void CondProp::SimplifyPredecessors(SwitchInst *SI) {
|
|||||||
return;
|
return;
|
||||||
BasicBlock::iterator BBI = BB->begin();
|
BasicBlock::iterator BBI = BB->begin();
|
||||||
BasicBlock::iterator BBE = BB->end();
|
BasicBlock::iterator BBE = BB->end();
|
||||||
while (BBI != BBE && isa<DbgInfoIntrinsic>(++BBI)) ;
|
while (BBI != BBE && isa<DbgInfoIntrinsic>(++BBI)) /* empty */;
|
||||||
if (&*BBI != SI)
|
if (&*BBI != SI)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user