Bug fix: always generate a RET_FLAG in LowerRET

fixes ret_null.ll and call.ll

llvm-svn: 29519
This commit is contained in:
Rafael Espindola 2006-08-03 22:50:11 +00:00
parent 328b5a3016
commit 97918b1d11

View File

@ -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());