diff options
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index 833dd43..b65b4a6 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -268,12 +268,8 @@ bool BugDriver::debugMiscompilation() { return false; // Problem found } - // Figure out which transformations miscompile the input program. - unsigned OldSize = PassesToRun.size(); - ReduceMiscompilingPasses(*this).reduceList(PassesToRun); - // Make sure something was miscompiled... - if (PassesToRun.size() == OldSize) { + if (!ReduceMiscompilingPasses(*this).reduceList(PassesToRun)) { std::cerr << "*** Optimized program matches reference output! No problem " << "detected...\nbugpoint can't help you with your problem!\n"; return false; |