diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 7e7f10db276..98675890806 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -445,7 +445,8 @@ int main(int argc, char **argv) { OutputFilename = "-"; std::error_code EC; - Out.reset(new tool_output_file(OutputFilename, EC, sys::fs::F_None)); + Out = llvm::make_unique(OutputFilename, EC, + sys::fs::F_None); if (EC) { errs() << EC.message() << '\n'; return 1;