mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-13 11:22:03 +00:00
Use range-based for loop [NFC]
llvm-svn: 292471
This commit is contained in:
parent
a989a8b84c
commit
97b8490982
@ -1455,6 +1455,6 @@ void RegionGenerator::copyPHIInstruction(ScopStmt &Stmt, PHINode *PHI,
|
||||
PHICopy->moveBefore(PHICopy->getParent()->getFirstNonPHI());
|
||||
BBMap[PHI] = PHICopy;
|
||||
|
||||
for (unsigned u = 0; u < NumIncoming; u++)
|
||||
addOperandToPHI(Stmt, PHI, PHICopy, PHI->getIncomingBlock(u), LTS);
|
||||
for (BasicBlock *IncomingBB : PHI->blocks())
|
||||
addOperandToPHI(Stmt, PHI, PHICopy, IncomingBB, LTS);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user