diff options
| author | Tobias Grosser <tobias@grosser.es> | 2017-01-19 05:09:23 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2017-01-19 05:09:23 +0000 |
| commit | 97b849098234512aaf9a6081a133f253de78e035 (patch) | |
| tree | c89d7e61c363fe2bfc3bc58f9d7d8fb0ed78403e /polly/lib/CodeGen/BlockGenerators.cpp | |
| parent | a989a8b84c40b1fe8ee0ba0f989248d43795cc87 (diff) | |
| download | bcm5719-llvm-97b849098234512aaf9a6081a133f253de78e035.tar.gz bcm5719-llvm-97b849098234512aaf9a6081a133f253de78e035.zip | |
Use range-based for loop [NFC]
llvm-svn: 292471
Diffstat (limited to 'polly/lib/CodeGen/BlockGenerators.cpp')
| -rw-r--r-- | polly/lib/CodeGen/BlockGenerators.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index 8ef26557b47..a18640911b4 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -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); } |

