mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 16:53:02 +00:00
Bad bad bug. findRegisterUseOperand() returns -1 if a use if not found.
llvm-svn: 35618
This commit is contained in:
parent
a2eabd50c0
commit
bad40843ec
@ -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