diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-22 18:57:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-22 18:57:43 +0000 |
commit | c28c1d3cd19bbfcc8eec44f25c5890f8e3ed8bdc (patch) | |
tree | cc4fe8bcde391cd8418fae89c5d2a658b122dcf2 | |
parent | 31a6db0f2c94852e6dba7ca1e7f8df395cb3ad05 (diff) | |
download | external_llvm-c28c1d3cd19bbfcc8eec44f25c5890f8e3ed8bdc.zip external_llvm-c28c1d3cd19bbfcc8eec44f25c5890f8e3ed8bdc.tar.gz external_llvm-c28c1d3cd19bbfcc8eec44f25c5890f8e3ed8bdc.tar.bz2 |
Kill warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8056 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/bugpoint/BugDriver.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp index 398e496..e950cdb 100644 --- a/tools/bugpoint/BugDriver.cpp +++ b/tools/bugpoint/BugDriver.cpp @@ -146,7 +146,7 @@ bool BugDriver::run() { // was specified, make sure that the raw output matches it. If not, it's a // problem in the front-end or the code generator. // - bool CreatedOutput = false, Result; + bool CreatedOutput = false; if (ReferenceOutputFile.empty()) { std::cout << "Generating reference output from raw program..."; if (DebugCodegen) { @@ -158,10 +158,14 @@ bool BugDriver::run() { std::cout << "Reference output is: " << ReferenceOutputFile << "\n"; } - if (DebugMode == DebugCompile) { + bool Result; + switch (DebugMode) { + default: assert(0 && "Bad value for DebugMode!"); + case DebugCompile: std::cout << "\n*** Debugging miscompilation!\n"; Result = debugMiscompilation(); - } else { // there is only one other possible value: DebugCodegen + break; + case DebugCodegen: std::cout << "Debugging code generator problem!\n"; Result = debugCodeGenerator(); } |