mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Okay, my off by one was actually off by two. This fixes Generic/2003-07-07-BadLongConst.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3304a3d24
commit
6cc70ef0f9
@ -208,7 +208,7 @@ X86TargetLowering::LowerCallTo(SDOperand Chain,
|
|||||||
RetVals.push_back(MVT::Other);
|
RetVals.push_back(MVT::Other);
|
||||||
|
|
||||||
SDOperand TheCall = SDOperand(DAG.getCall(RetVals, Chain, Callee), 0);
|
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,
|
Chain = DAG.getNode(ISD::ADJCALLSTACKUP, MVT::Other, Chain,
|
||||||
DAG.getConstant(NumBytes, getPointerTy()));
|
DAG.getConstant(NumBytes, getPointerTy()));
|
||||||
return std::make_pair(TheCall, Chain);
|
return std::make_pair(TheCall, Chain);
|
||||||
|
Loading…
Reference in New Issue
Block a user