]> granicus.if.org Git - clang/commitdiff
Revert "Fix another make_unique ambiguity."
authorAmara Emerson <aemerson@apple.com>
Tue, 22 May 2018 11:18:49 +0000 (11:18 +0000)
committerAmara Emerson <aemerson@apple.com>
Tue, 22 May 2018 11:18:49 +0000 (11:18 +0000)
This reverts commit r332906 as a dependency to revert r332885.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332972 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BackendUtil.cpp

index f9239f636496ec54b05f0307ae5a981bbc1656b4..9de6c8e03aba56eef35a6f8acfb0b5ead663a2c0 100644 (file)
@@ -108,8 +108,7 @@ class EmitAssemblyHelper {
 
   std::unique_ptr<llvm::ToolOutputFile> openOutputFile(StringRef Path) {
     std::error_code EC;
-    auto F = llvm::make_unique<llvm::ToolOutputFile>(Path, EC,
-                                                     llvm::sys::fs::F_None);
+    auto F = make_unique<llvm::ToolOutputFile>(Path, EC, llvm::sys::fs::F_None);
     if (EC) {
       Diags.Report(diag::err_fe_unable_to_open_output) << Path << EC.message();
       F.reset();