Skip to content

Commit 7e51a50

Browse files
committed
Fix an inverted condition that causes us to think that loop extraction
accomplished something when it really did not. This does not fix the bigger problem tho. llvm-svn: 12469
1 parent 425726d commit 7e51a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/bugpoint/ExtractFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Module *BugDriver::ExtractLoop(Module *M) {
141141

142142
// Check to see if we created any new functions. If not, no loops were
143143
// extracted and we should return null.
144-
if (M->size() != NewM->size()) {
144+
if (M->size() == NewM->size()) {
145145
delete NewM;
146146
return 0;
147147
}

0 commit comments

Comments
 (0)