diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 22:28:12 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 22:28:12 +0000 |
commit | 736259e3428d36f8024e6b08e4a95167f313d958 (patch) | |
tree | 21716efbff7d59fb0af4ab26e1f91d19abcf9788 /polly/lib/Transform | |
parent | 3755579f93c2b21aabcc47c23c0a5a5676a0d80e (diff) | |
download | bcm5719-llvm-736259e3428d36f8024e6b08e4a95167f313d958.tar.gz bcm5719-llvm-736259e3428d36f8024e6b08e4a95167f313d958.zip |
[Polly] Migrate llvm::make_unique to std::make_unique
Now that we've moved to C++14, we no longer need the llvm::make_unique
implementation from STLExtras.h. This patch is a mechanical replacement
of (hopefully) all the llvm::make_unique instances across the monorepo.
Differential revision: https://reviews.llvm.org/D66259
llvm-svn: 368935
Diffstat (limited to 'polly/lib/Transform')
-rw-r--r-- | polly/lib/Transform/DeLICM.cpp | 2 | ||||
-rw-r--r-- | polly/lib/Transform/ForwardOpTree.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Transform/DeLICM.cpp b/polly/lib/Transform/DeLICM.cpp index 7191993e845..8e172dbc9a1 100644 --- a/polly/lib/Transform/DeLICM.cpp +++ b/polly/lib/Transform/DeLICM.cpp @@ -1358,7 +1358,7 @@ private: void collapseToUnused(Scop &S) { auto &LI = getAnalysis<LoopInfoWrapperPass>().getLoopInfo(); - Impl = make_unique<DeLICMImpl>(&S, &LI); + Impl = std::make_unique<DeLICMImpl>(&S, &LI); if (!Impl->computeZone()) { LLVM_DEBUG(dbgs() << "Abort because cannot reliably compute lifetimes\n"); diff --git a/polly/lib/Transform/ForwardOpTree.cpp b/polly/lib/Transform/ForwardOpTree.cpp index ad31673c5b3..a5c4e65d26d 100644 --- a/polly/lib/Transform/ForwardOpTree.cpp +++ b/polly/lib/Transform/ForwardOpTree.cpp @@ -914,7 +914,7 @@ public: { IslMaxOperationsGuard MaxOpGuard(S.getIslCtx().get(), MaxOps, false); - Impl = llvm::make_unique<ForwardOpTreeImpl>(&S, &LI, MaxOpGuard); + Impl = std::make_unique<ForwardOpTreeImpl>(&S, &LI, MaxOpGuard); if (AnalyzeKnown) { LLVM_DEBUG(dbgs() << "Prepare forwarders...\n"); |