Fix off by one error

llvm-svn: 19396
This commit is contained in:
Chris Lattner 2005-01-08 20:31:34 +00:00
parent f806d9f2d0
commit a183eb75eb
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ X86TargetLowering::LowerCallTo(SDOperand Chain,
RetVals.push_back(MVT::Other);
SDOperand TheCall = SDOperand(DAG.getCall(RetVals, Chain, Callee), 0);
Chain = TheCall.getValue(RetVals.size()-1);
Chain = TheCall.getValue(RetVals.size());
Chain = DAG.getNode(ISD::ADJCALLSTACKUP, MVT::Other, Chain,
DAG.getConstant(NumBytes, getPointerTy()));
return std::make_pair(TheCall, Chain);