diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-17 17:37:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-17 17:37:18 +0000 |
commit | 7e51a502bc0e829866465e4b3ff137422c65fdec (patch) | |
tree | e45e9827a899aabccc45a940dd5b119fdb2dc1b8 /llvm/tools/bugpoint/ExtractFunction.cpp | |
parent | 425726d9c2499b4fdf3776e9d1ce9976b4fbdde4 (diff) | |
download | bcm5719-llvm-7e51a502bc0e829866465e4b3ff137422c65fdec.tar.gz bcm5719-llvm-7e51a502bc0e829866465e4b3ff137422c65fdec.zip |
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
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExtractFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |