Unbreak code generator debug mode

llvm-svn: 9106
This commit is contained in:
Chris Lattner 2003-10-13 21:04:26 +00:00
parent 49a9b67858
commit 6ca0b8738a
1 changed files with 5 additions and 3 deletions

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";