mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-23 16:31:20 +00:00
Bad bad bug. findRegisterUseOperand() returns -1 if a use if not found.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c9c9d2d554
commit
595b6d121c
@ -235,7 +235,7 @@ static unsigned calcDistanceToUse(MachineBasicBlock *MBB,
|
||||
I = next(I);
|
||||
while (I != MBB->end()) {
|
||||
Dist++;
|
||||
if (I->findRegisterUseOperand(Reg))
|
||||
if (I->findRegisterUseOperand(Reg) != -1)
|
||||
return Dist;
|
||||
I = next(I);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user