diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-10-18 19:27:48 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-10-18 19:27:48 +0000 |
| commit | bb831b9cf9751bb0a12bf2bb8a1a02286da3bb0d (patch) | |
| tree | 9a004b7495482b059d45a116564cb30056292256 | |
| parent | dc83293a38be16a89ce7f528859b45633757975b (diff) | |
| download | bcm5719-llvm-bb831b9cf9751bb0a12bf2bb8a1a02286da3bb0d.tar.gz bcm5719-llvm-bb831b9cf9751bb0a12bf2bb8a1a02286da3bb0d.zip | |
If we detect a pass crash during miscompilation testing, immediately enter the
crash debugger
llvm-svn: 9234
| -rw-r--r-- | llvm/tools/bugpoint/Miscompilation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp index 6ef9fc26c11..95d24e96a58 100644 --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/tools/bugpoint/Miscompilation.cpp @@ -35,7 +35,7 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix, << " on the input program!\n"; BD.setPassesToRun(Suffix); BD.EmitProgressBytecode("pass-error", false); - exit(1); + exit(BD.debugCrash()); } // Check to see if the finished program matches the reference output... @@ -63,7 +63,7 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix, << " on the input program!\n"; BD.setPassesToRun(Prefix); BD.EmitProgressBytecode("pass-error", false); - exit(1); + exit(BD.debugCrash()); } // If the prefix maintains the predicate by itself, only keep the prefix! @@ -96,7 +96,7 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix, << " on the input program!\n"; BD.setPassesToRun(Suffix); BD.EmitProgressBytecode("pass-error", false); - exit(1); + exit(BD.debugCrash()); } // Run the result... @@ -210,7 +210,7 @@ bool ReduceMiscompilingFunctions::TestFuncs(const std::vector<Function*> &Funcs, std::cerr << " Error running this sequence of passes" << " on the input program!\n"; BD.EmitProgressBytecode("pass-error", false); - exit(1); + exit(BD.debugCrash()); } if (!EmitBytecode) |

