mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Bug fix: always generate a RET_FLAG in LowerRET
fixes ret_null.ll and call.ll llvm-svn: 29519
This commit is contained in:
parent
328b5a3016
commit
97918b1d11
@ -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