mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-12 04:26:43 +00:00
Commit missing fixes for tool_file_rename
llvm-svn: 314051
This commit is contained in:
parent
e0df0bbd27
commit
7f2317ba9c
@ -379,10 +379,10 @@ int main(int argc, char **argv) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::unique_ptr<tool_output_file> OutputFile;
|
||||
std::unique_ptr<ToolOutputFile> OutputFile;
|
||||
if (!OutputFilename.empty()) {
|
||||
std::error_code EC;
|
||||
OutputFile = llvm::make_unique<tool_output_file>(OutputFilename, EC,
|
||||
OutputFile = llvm::make_unique<ToolOutputFile>(OutputFilename, EC,
|
||||
sys::fs::F_None);
|
||||
error("Unable to open output file" + OutputFilename, EC);
|
||||
// Don't remove output file if we exit with an error.
|
||||
|
Loading…
x
Reference in New Issue
Block a user