mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
If the program returns a non-zero exit value, don't leave files laying
around llvm-svn: 12603
This commit is contained in:
parent
a262913211
commit
b3f5ab8d5b
@ -265,8 +265,11 @@ bool BugDriver::diffProgram(const std::string &BytecodeFile,
|
||||
&ProgramExitedNonzero);
|
||||
|
||||
// If we're checking the program exit code, assume anything nonzero is bad.
|
||||
if (CheckProgramExitCode && ProgramExitedNonzero)
|
||||
if (CheckProgramExitCode && ProgramExitedNonzero) {
|
||||
removeFile(Output);
|
||||
if (RemoveBytecode) removeFile(BytecodeFile);
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string Error;
|
||||
bool FilesDifferent = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user