r332972 - Revert "Fix another make_unique ambiguity."
Amara Emerson via cfe-commits
cfe-commits at lists.llvm.org
Tue May 22 04:18:49 PDT 2018
Author: aemerson
Date: Tue May 22 04:18:49 2018
New Revision: 332972
URL: http://llvm.org/viewvc/llvm-project?rev=332972&view=rev
Log:
Revert "Fix another make_unique ambiguity."
This reverts commit r332906 as a dependency to revert r332885.
Modified:
cfe/trunk/lib/CodeGen/BackendUtil.cpp
Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=332972&r1=332971&r2=332972&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Tue May 22 04:18:49 2018
@@ -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();
More information about the cfe-commits
mailing list