[llvm-commits] CVS: llvm/tools/bugpoint/ExecutionDriver.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Apr 1 23:34:03 PST 2004
Changes in directory llvm/tools/bugpoint:
ExecutionDriver.cpp updated: 1.38 -> 1.39
---
Log message:
If the program returns a non-zero exit value, don't leave files laying
around
---
Diffs of the changes: (+4 -1)
Index: llvm/tools/bugpoint/ExecutionDriver.cpp
diff -u llvm/tools/bugpoint/ExecutionDriver.cpp:1.38 llvm/tools/bugpoint/ExecutionDriver.cpp:1.39
--- llvm/tools/bugpoint/ExecutionDriver.cpp:1.38 Wed Feb 18 17:25:22 2004
+++ llvm/tools/bugpoint/ExecutionDriver.cpp Thu Apr 1 23:33:06 2004
@@ -265,8 +265,11 @@
&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;
More information about the llvm-commits
mailing list