forked from OSchip/llvm-project
Fix more build errors in Polly after r206310. David caught one of these
in r206312, but others don't seem to show up on build bots? Unsure of why, they showed up for me. llvm-svn: 206326
This commit is contained in:
parent
9c2a3958f0
commit
1fc97224af
|
@ -135,7 +135,7 @@ struct DOTGraphTraits<ScopDetection *> : public DOTGraphTraits<RegionNode *> {
|
|||
}
|
||||
|
||||
for (const auto &SubRegion : *R)
|
||||
printRegionCluster(SD, SubRegion, O, depth + 1);
|
||||
printRegionCluster(SD, SubRegion.get(), O, depth + 1);
|
||||
|
||||
RegionInfo *RI = R->getRegionInfo();
|
||||
|
||||
|
|
|
@ -334,12 +334,10 @@ bool IndependentBlocks::splitExitBlock(Region *R) {
|
|||
Region *Reg = toUpdate.back();
|
||||
toUpdate.pop_back();
|
||||
|
||||
for (Region::iterator I = Reg->begin(), E = Reg->end(); I != E; ++I) {
|
||||
Region *SubR = *I;
|
||||
|
||||
for (const auto &SubR : *Reg)
|
||||
if (SubR->getExit() == ExitBB)
|
||||
toUpdate.push_back(SubR);
|
||||
}
|
||||
toUpdate.push_back(SubR.get());
|
||||
|
||||
|
||||
Reg->replaceExit(NewExit);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue