r332906 - Fix another make_unique ambiguity.
Peter Collingbourne via cfe-commits
cfe-commits at lists.llvm.org
Mon May 21 14:48:17 PDT 2018
Author: pcc
Date: Mon May 21 14:48:17 2018
New Revision: 332906
URL: http://llvm.org/viewvc/llvm-project?rev=332906&view=rev
Log:
Fix another make_unique ambiguity.
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=332906&r1=332905&r2=332906&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Mon May 21 14:48:17 2018
@@ -108,7 +108,8 @@ class EmitAssemblyHelper {
std::unique_ptr<llvm::ToolOutputFile> openOutputFile(StringRef Path) {
std::error_code EC;
- auto F = make_unique<llvm::ToolOutputFile>(Path, EC, llvm::sys::fs::F_None);
+ auto F = llvm::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