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:
parent
dd884295d0
commit
c8b2904e0d
@ -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<tool_output_file>(OutputFilename, EC,
|
||||
sys::fs::F_None);
|
||||
if (EC) {
|
||||
errs() << EC.message() << '\n';
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user