diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-13 21:04:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-13 21:04:26 +0000 |
commit | 99b85334d70bc5eb110ee5f1af4ff2f63c55f6cb (patch) | |
tree | 47049ea7f5cd5512e65391ebeacb8ce9f513bb96 | |
parent | 7eadec6327cc996483aae4c5db8145bc409d694a (diff) |
Unbreak code generator debug mode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9106 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/bugpoint/BugDriver.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp index 67f59fd54d..0801108557 100644 --- a/tools/bugpoint/BugDriver.cpp +++ b/tools/bugpoint/BugDriver.cpp @@ -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"; |