From 99b85334d70bc5eb110ee5f1af4ff2f63c55f6cb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 13 Oct 2003 21:04:26 +0000 Subject: [PATCH] Unbreak code generator debug mode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9106 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/BugDriver.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp index 67f59fd54d7..08011085577 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"; -- 2.34.1