mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +00:00
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
This commit is contained in:
parent
9d5968dd51
commit
7fa44fca30
@ -141,7 +141,7 @@ Module *BugDriver::ExtractLoop(Module *M) {
|
|||||||
|
|
||||||
// Check to see if we created any new functions. If not, no loops were
|
// Check to see if we created any new functions. If not, no loops were
|
||||||
// extracted and we should return null.
|
// extracted and we should return null.
|
||||||
if (M->size() != NewM->size()) {
|
if (M->size() == NewM->size()) {
|
||||||
delete NewM;
|
delete NewM;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user