mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
If we detect a pass crash during miscompilation testing, immediately enter the
crash debugger llvm-svn: 9234
This commit is contained in:
parent
3ff64cf568
commit
a65c470b02
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user