From f2a7d5768a72e1f973250abf700abc815a2a66d6 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 16 Aug 2006 07:28:58 +0000 Subject: [PATCH] RET_FLAG has an optional input flag, but it does not produce a flag result. llvm-svn: 29725 --- llvm/lib/Target/IA64/IA64ISelLowering.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/llvm/lib/Target/IA64/IA64ISelLowering.cpp b/llvm/lib/Target/IA64/IA64ISelLowering.cpp index d4bc5d0ce2b7..3693d8589082 100644 --- a/llvm/lib/Target/IA64/IA64ISelLowering.cpp +++ b/llvm/lib/Target/IA64/IA64ISelLowering.cpp @@ -573,14 +573,8 @@ LowerOperation(SDOperand Op, SelectionDAG &DAG) { SDOperand()); AR_PFSVal = DAG.getCopyToReg(Copy.getValue(0), IA64::AR_PFS, AR_PFSVal, Copy.getValue(1)); - std::vector NodeTys; - std::vector RetOperands; - NodeTys.push_back(MVT::Other); - NodeTys.push_back(MVT::Flag); - RetOperands.push_back(AR_PFSVal); - RetOperands.push_back(AR_PFSVal.getValue(1)); - return DAG.getNode(IA64ISD::RET_FLAG, NodeTys, - &RetOperands[0], RetOperands.size()); + return DAG.getNode(IA64ISD::RET_FLAG, MVT::Other, + AR_PFSVal, AR_PFSVal.getValue(1)); } } return SDOperand();