summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-13 21:04:26 +0000
committerChris Lattner <sabre@nondot.org>2003-10-13 21:04:26 +0000
commit99b85334d70bc5eb110ee5f1af4ff2f63c55f6cb (patch)
tree47049ea7f5cd5512e65391ebeacb8ce9f513bb96 /tools/bugpoint/BugDriver.cpp
parent7eadec6327cc996483aae4c5db8145bc409d694a (diff)
downloadllvm-99b85334d70bc5eb110ee5f1af4ff2f63c55f6cb.tar.gz
llvm-99b85334d70bc5eb110ee5f1af4ff2f63c55f6cb.tar.bz2
llvm-99b85334d70bc5eb110ee5f1af4ff2f63c55f6cb.tar.xz
Unbreak code generator debug mode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.cpp')
-rw-r--r--tools/bugpoint/BugDriver.cpp8
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";