Okay, my off by one was actually off by two. This fixes Generic/2003-07-07-BadLongConst.ll

llvm-svn: 19398
This commit is contained in:
Chris Lattner 2005-01-08 20:39:31 +00:00
parent 3b52b2f6c2
commit 85816cff9a

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());
Chain = TheCall.getValue(RetVals.size()+1);
Chain = DAG.getNode(ISD::ADJCALLSTACKUP, MVT::Other, Chain,
DAG.getConstant(NumBytes, getPointerTy()));
return std::make_pair(TheCall, Chain);