mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
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
This commit is contained in:
parent
0ea6f98f9c
commit
b90043f29e
@ -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