[polly] r206326 - Fix more build errors in Polly after r206310. David caught one of these
Chandler Carruth
chandlerc at gmail.com
Tue Apr 15 14:48:34 PDT 2014
Author: chandlerc
Date: Tue Apr 15 16:48:34 2014
New Revision: 206326
URL: http://llvm.org/viewvc/llvm-project?rev=206326&view=rev
Log:
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.
Modified:
polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
polly/trunk/lib/Transform/IndependentBlocks.cpp
Modified: polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopGraphPrinter.cpp?rev=206326&r1=206325&r2=206326&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopGraphPrinter.cpp (original)
+++ polly/trunk/lib/Analysis/ScopGraphPrinter.cpp Tue Apr 15 16:48:34 2014
@@ -135,7 +135,7 @@ struct DOTGraphTraits<ScopDetection *> :
}
for (const auto &SubRegion : *R)
- printRegionCluster(SD, SubRegion, O, depth + 1);
+ printRegionCluster(SD, SubRegion.get(), O, depth + 1);
RegionInfo *RI = R->getRegionInfo();
Modified: polly/trunk/lib/Transform/IndependentBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/IndependentBlocks.cpp?rev=206326&r1=206325&r2=206326&view=diff
==============================================================================
--- polly/trunk/lib/Transform/IndependentBlocks.cpp (original)
+++ polly/trunk/lib/Transform/IndependentBlocks.cpp Tue Apr 15 16:48:34 2014
@@ -334,12 +334,10 @@ bool IndependentBlocks::splitExitBlock(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);
}
More information about the llvm-commits
mailing list