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 | 7fa44fca308a0f8d13d981c2460ddb6de5a7b667 (patch) | |
tree | a9b05b262160652cbb4b5b5afbddd7cad73d0327 /tools | |
parent | 9d5968dd51c651570c37117cb03117f8526fd62a (diff) | |
download | external_llvm-7fa44fca308a0f8d13d981c2460ddb6de5a7b667.zip external_llvm-7fa44fca308a0f8d13d981c2460ddb6de5a7b667.tar.gz external_llvm-7fa44fca308a0f8d13d981c2460ddb6de5a7b667.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/ExtractFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index e8fe499..5119c80 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; } |