llvm.org GIT mirror llvm / b90043f
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 Craig Topper 4 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
444444 OutputFilename = "-";
445445
446446 std::error_code EC;
447 Out.reset(new tool_output_file(OutputFilename, EC, sys::fs::F_None));
447 Out = llvm::make_unique(OutputFilename, EC,
448 sys::fs::F_None);
448449 if (EC) {
449450 errs() << EC.message() << '\n';
450451 return 1;