From 79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Sat, 17 Aug 2019 11:05:35 -0700 Subject: Change from llvm::make_unique to std::make_unique Switch to C++14 standard method as llvm::make_unique has been removed ( https://reviews.llvm.org/D66259). Also mark some targets as c++14 to ease next integrates. PiperOrigin-RevId: 263953918 --- mlir/lib/Pass/Pass.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mlir/lib/Pass/Pass.cpp') diff --git a/mlir/lib/Pass/Pass.cpp b/mlir/lib/Pass/Pass.cpp index ba3b4742cc7..13f2738b002 100644 --- a/mlir/lib/Pass/Pass.cpp +++ b/mlir/lib/Pass/Pass.cpp @@ -283,7 +283,7 @@ void PassManager::addPass(std::unique_ptr pass) { // Add a verifier run if requested. if (verifyPasses) - mpe->addPass(llvm::make_unique()); + mpe->addPass(std::make_unique()); } /// Add a function pass to the current manager. This takes ownership over the @@ -295,11 +295,11 @@ void PassManager::addPass(std::unique_ptr pass) { /// Create an executor adaptor for this pass. if (disableThreads || !llvm::llvm_is_multithreaded()) { // If multi-threading is disabled, then create a synchronous adaptor. - auto adaptor = llvm::make_unique(); + auto adaptor = std::make_unique(); fpe = &adaptor->getFunctionExecutor(); addPass(std::unique_ptr{adaptor.release()}); } else { - auto adaptor = llvm::make_unique(); + auto adaptor = std::make_unique(); fpe = &adaptor->getFunctionExecutor(); addPass(std::unique_ptr{adaptor.release()}); } @@ -313,7 +313,7 @@ void PassManager::addPass(std::unique_ptr pass) { // Add a verifier run if requested. if (verifyPasses) - fpe->addPass(llvm::make_unique()); + fpe->addPass(std::make_unique()); } /// Add the provided instrumentation to the pass manager. This takes ownership -- cgit v1.2.3