1
0
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:
Chris Lattner 2004-04-02 05:33:06 +00:00
parent a262913211
commit b3f5ab8d5b

View File

@ -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;