From b90043f29e7646a2fa2075ffc6298d89c4cf2a53 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 12 Dec 2014 07:52:14 +0000 Subject: [PATCH] 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 --- tools/opt/opt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.11.0