]> granicus.if.org Git - clang/commitdiff
Fix build - use llvm::make_unique
authorIvan Donchevskii <ivan.donchevskii@qt.io>
Wed, 6 Jun 2018 08:25:54 +0000 (08:25 +0000)
committerIvan Donchevskii <ivan.donchevskii@qt.io>
Wed, 6 Jun 2018 08:25:54 +0000 (08:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334072 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Frontend/ASTUnitTest.cpp

index 5296fc51f844adddb3b2aafc69a4026f596cf739..c60004e40bd721302d43ed38b0d4dd8efd0be2ee 100644 (file)
@@ -35,7 +35,7 @@ protected:
   std::unique_ptr<ASTUnit> createASTUnit(bool isVolatile) {
     EXPECT_FALSE(llvm::sys::fs::createTemporaryFile("ast-unit", "cpp", FD,
                                                     InputFileName));
-    input_file = std::make_unique<ToolOutputFile>(InputFileName, FD);
+    input_file = llvm::make_unique<ToolOutputFile>(InputFileName, FD);
     input_file->os() << "";
 
     const char *Args[] = {"clang", "-xc++", InputFileName.c_str()};