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