[Polly] Migrate llvm::make_unique to std::make_unique
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 14 Aug 2019 22:28:12 +0000 (22:28 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 14 Aug 2019 22:28:12 +0000 (22:28 +0000)
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

polly/lib/Transform/DeLICM.cpp
polly/lib/Transform/ForwardOpTree.cpp

index 7191993..8e172db 100644 (file)
@@ -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");
index ad31673..a5c4e65 100644 (file)
@@ -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");