From 0eaee545eef49ff9498234d3a51a5cbde59bf976 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 15 Aug 2019 15:54:37 +0000 Subject: [llvm] 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. llvm-svn: 369013 --- llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst') diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst index 685e5fb69e4..0e61c07659d 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst @@ -146,7 +146,7 @@ First we define a new parsing function: if (!Else) return nullptr; - return llvm::make_unique(std::move(Cond), std::move(Then), + return std::make_unique(std::move(Cond), std::move(Then), std::move(Else)); } @@ -560,7 +560,7 @@ value to null in the AST node: if (!Body) return nullptr; - return llvm::make_unique(IdName, std::move(Start), + return std::make_unique(IdName, std::move(Start), std::move(End), std::move(Step), std::move(Body)); } -- cgit v1.2.3