aboutsummaryrefslogtreecommitdiffstats
path: root/tools
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
parent7eadec6327cc996483aae4c5db8145bc409d694a (diff)
downloadexternal_llvm-99b85334d70bc5eb110ee5f1af4ff2f63c55f6cb.zip
external_llvm-99b85334d70bc5eb110ee5f1af4ff2f63c55f6cb.tar.gz
external_llvm-99b85334d70bc5eb110ee5f1af4ff2f63c55f6cb.tar.bz2
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')
-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 67f59fd..0801108 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";