From: Craig Topper Date: Fri, 12 Dec 2014 07:52:14 +0000 (+0000) Subject: Use make_unique instead of reset() and 'new' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b90043f29e7646a2fa2075ffc6298d89c4cf2a53;p=llvm Use make_unique instead of reset() and 'new' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224107 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;