mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Bug fix: always generate a RET_FLAG in LowerRET
fixes ret_null.ll and call.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29519 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c75a04bd2e
commit
6312da0fc7
@ -170,7 +170,7 @@ static SDOperand LowerRET(SDOperand Op, SelectionDAG &DAG) {
|
||||
abort();
|
||||
case 1: {
|
||||
SDOperand LR = DAG.getRegister(ARM::R14, MVT::i32);
|
||||
return DAG.getNode(ISD::BRIND, MVT::Other, Chain, LR);
|
||||
return DAG.getNode(ARMISD::RET_FLAG, MVT::Other, Chain);
|
||||
}
|
||||
case 3:
|
||||
Copy = DAG.getCopyToReg(Chain, ARM::R0, Op.getOperand(1), SDOperand());
|
||||
|
Loading…
Reference in New Issue
Block a user