Unbreak code generator debug mode

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-13 21:04:26 +00:00
parent 7eadec6327
commit 99b85334d7

View File

@ -128,9 +128,11 @@ bool BugDriver::run() {
// a bytecode file, then we know the compiler didn't crash, so try to diagnose
// a miscompilation.
//
std::cout << "Running selected passes on program to test for crash: ";
if (runPasses(PassesToRun))
return debugCrash();
if (!PassesToRun.empty()) {
std::cout << "Running selected passes on program to test for crash: ";
if (runPasses(PassesToRun))
return debugCrash();
}
std::cout << "Checking for a miscompilation...\n";