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:
Chandler Carruth 2014-04-15 21:48:34 +00:00
parent 9c2a3958f0
commit 1fc97224af
2 changed files with 4 additions and 6 deletions

View File

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

View File

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