llvm-svn: 31364
This commit is contained in:
Evan Cheng
2006-11-01 23:18:32 +00:00
parent d8697deca3
commit 93cdd149f7
4 changed files with 7 additions and 5 deletions

View File

@@ -821,7 +821,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM) {
// If this def is part of a two-address operand, make sure to execute
// the store from the correct physical register.
unsigned PhysReg;
int TiedOp = TII->getTiedToSrcOperand(MI.getOpcode(), i);
int TiedOp = TII->findTiedToSrcOperand(MI.getOpcode(), i);
if (TiedOp != -1)
PhysReg = MI.getOperand(TiedOp).getReg();
else