From 7e51a502bc0e829866465e4b3ff137422c65fdec Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 17 Mar 2004 17:37:18 +0000 Subject: 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 --- llvm/tools/bugpoint/ExtractFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp') diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index e8fe499ffdd..5119c801a02 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/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; } -- cgit v1.2.3