1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Use make_unique instead of reset() and 'new'

llvm-svn: 224107
This commit is contained in:
Craig Topper 2014-12-12 07:52:14 +00:00
parent dd884295d0
commit c8b2904e0d

View File

@ -445,7 +445,8 @@ int main(int argc, char **argv) {
OutputFilename = "-"; OutputFilename = "-";
std::error_code EC; std::error_code EC;
Out.reset(new tool_output_file(OutputFilename, EC, sys::fs::F_None)); Out = llvm::make_unique<tool_output_file>(OutputFilename, EC,
sys::fs::F_None);
if (EC) { if (EC) {
errs() << EC.message() << '\n'; errs() << EC.message() << '\n';
return 1; return 1;