mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-25 05:10:56 +00:00
Don't register stdout to be deleted on a signal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111368 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a6ee29aae
commit
ca91912a3b
@ -118,7 +118,8 @@ int main(int argc, char **argv) {
|
||||
|
||||
// Make sure that the Output file gets unlinked from the disk if we get a
|
||||
// SIGINT
|
||||
sys::RemoveFileOnSignal(sys::Path(OutputFilename));
|
||||
if (OutputFilename != "-")
|
||||
sys::RemoveFileOnSignal(sys::Path(OutputFilename));
|
||||
|
||||
std::string ErrorInfo;
|
||||
raw_fd_ostream Out(OutputFilename.c_str(), ErrorInfo,
|
||||
|
Loading…
x
Reference in New Issue
Block a user