summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-18 19:27:48 +0000
committerChris Lattner <sabre@nondot.org>2003-10-18 19:27:48 +0000
commita12c06a9fe4bec90ab420946ee0b7beaed9f7263 (patch)
treeeafb3b1840b0a94f82578f70a98cdcc0f408b924 /tools
parent22482a14be04acd36dd1564ece09caa8a941a93c (diff)
downloadllvm-a12c06a9fe4bec90ab420946ee0b7beaed9f7263.tar.gz
llvm-a12c06a9fe4bec90ab420946ee0b7beaed9f7263.tar.bz2
llvm-a12c06a9fe4bec90ab420946ee0b7beaed9f7263.tar.xz
If we detect a pass crash during miscompilation testing, immediately enter the
crash debugger git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/Miscompilation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index 6ef9fc26c1..95d24e96a5 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/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)