summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-22 18:57:43 +0000
committerChris Lattner <sabre@nondot.org>2003-08-22 18:57:43 +0000
commitd1123fde111d887b08cecd5516d904889314f597 (patch)
treef12bec9b0dc34d5c16fa5cdf4f0739890adfda1a
parent23edbf25f4129869cb0a57d31513919a60f44664 (diff)
downloadbcm5719-llvm-d1123fde111d887b08cecd5516d904889314f597.tar.gz
bcm5719-llvm-d1123fde111d887b08cecd5516d904889314f597.zip
Kill warning
llvm-svn: 8056
-rw-r--r--llvm/tools/bugpoint/BugDriver.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.cpp b/llvm/tools/bugpoint/BugDriver.cpp
index 398e4965e00..e950cdb18c0 100644
--- a/llvm/tools/bugpoint/BugDriver.cpp
+++ b/llvm/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();
}
OpenPOWER on IntegriCloud