aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/bugpoint/ExtractFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp
index e8fe499ffd..5119c801a0 100644
--- a/tools/bugpoint/ExtractFunction.cpp
+++ b/tools/bugpoint/ExtractFunction.cpp
@@ -141,7 +141,7 @@ Module *BugDriver::ExtractLoop(Module *M) {
// Check to see if we created any new functions. If not, no loops were
// extracted and we should return null.
- if (M->size() != NewM->size()) {
+ if (M->size() == NewM->size()) {
delete NewM;
return 0;
}