From 820a833125df70771f8f33a0bad3909e03458d12 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 20 Mar 2017 16:35:33 +0000 Subject: [PATCH] Avoid potential ADL ambiguity between llvm::make_unique and std::make_unique (when building as C++14+) Patch by Moritz Kiefer! llvm-svn: 298266 --- llvm/include/llvm/IR/PassManagerInternal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/IR/PassManagerInternal.h b/llvm/include/llvm/IR/PassManagerInternal.h index 02f21675fa9d..387dc4c65c43 100644 --- a/llvm/include/llvm/IR/PassManagerInternal.h +++ b/llvm/include/llvm/IR/PassManagerInternal.h @@ -291,7 +291,7 @@ struct AnalysisPassModel : AnalysisPassConcept> run(IRUnitT &IR, AnalysisManager &AM, ExtraArgTs... ExtraArgs) override { - return make_unique(Pass.run(IR, AM, ExtraArgs...)); + return llvm::make_unique(Pass.run(IR, AM, ExtraArgs...)); } /// \brief The model delegates to a static \c PassT::name method.