mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-08 15:24:21 +00:00
Use the appropriate register class for an i32 when adding ARM::LR to the
function live in set. This will give us tGPR for Thumb1 and GPR otherwise, so the copy will be spillable. rdar://8224931 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2608,7 +2608,7 @@ SDValue ARMTargetLowering::LowerRETURNADDR(SDValue Op, SelectionDAG &DAG) const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Return LR, which contains the return address. Mark it an implicit live-in.
|
// Return LR, which contains the return address. Mark it an implicit live-in.
|
||||||
unsigned Reg = MF.addLiveIn(ARM::LR, ARM::GPRRegisterClass);
|
unsigned Reg = MF.addLiveIn(ARM::LR, getRegClassFor(MVT::i32));
|
||||||
return DAG.getCopyFromReg(DAG.getEntryNode(), dl, Reg, VT);
|
return DAG.getCopyFromReg(DAG.getEntryNode(), dl, Reg, VT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user