Use range-based for loop [NFC]

llvm-svn: 292471
This commit is contained in:
Tobias Grosser 2017-01-19 05:09:23 +00:00
parent a989a8b84c
commit 97b8490982
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}