Fix the build after r314375

r314375 privatized Loop's constructor and replaced it with an Allocator.

llvm-svn: 314412
This commit is contained in:
Philip Pfaffe 2017-09-28 12:20:24 +00:00
parent 8af01573a3
commit 859ef1c09e
3 changed files with 3 additions and 3 deletions

View File

@ -191,7 +191,7 @@ public:
InvalidateCurrentScop = true;
Worklist.erase(&S.getRegion());
SAM.clear(S);
SAM.clear(S, S.getName());
}
private:

View File

@ -106,7 +106,7 @@ bool ScopAnalysisManagerFunctionProxy::Result::invalidate(
for (auto &S : *SI)
if (auto *scop = S.second.get())
if (InnerAM)
InnerAM->clear(*scop);
InnerAM->clear(*scop, scop->getName());
InnerAM = nullptr;
return true; // Invalidate the proxy result as well.

View File

@ -74,7 +74,7 @@ Value *polly::createLoop(Value *LB, Value *UB, Value *Stride,
// Update LoopInfo
Loop *OuterLoop = LI.getLoopFor(BeforeBB);
Loop *NewLoop = new Loop();
Loop *NewLoop = LI.AllocateLoop();
if (OuterLoop)
OuterLoop->addChildLoop(NewLoop);