projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76351aa
)
If the program returns a non-zero exit value, don't leave files laying
author
Chris Lattner
<sabre@nondot.org>
Fri, 2 Apr 2004 05:33:06 +0000
(
05:33
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 2 Apr 2004 05:33:06 +0000
(
05:33
+0000)
around
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12603
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/bugpoint/ExecutionDriver.cpp
patch
|
blob
|
history
diff --git
a/tools/bugpoint/ExecutionDriver.cpp
b/tools/bugpoint/ExecutionDriver.cpp
index 3d4e61058ff37bead6831cdef56059ec6337c99d..969eaabaf6e992ba9a641e039f4b9c7aeb196e5d 100644
(file)
--- a/
tools/bugpoint/ExecutionDriver.cpp
+++ b/
tools/bugpoint/ExecutionDriver.cpp
@@
-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;