fix the default va_arg expansion (in the realignment case) to not implicitly

truncate the stack pointer to 32-bits on a 64-bit machine.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-10-10 18:36:26 +00:00
parent 749dc72bdc
commit 07e3a38c78

View File

@ -2699,7 +2699,7 @@ void SelectionDAGLegalize::ExpandNode(SDNode *Node,
TLI.getPointerTy()));
VAList = DAG.getNode(ISD::AND, dl, TLI.getPointerTy(), VAList,
DAG.getConstant(-Align,
DAG.getConstant(-(int64_t)Align,
TLI.getPointerTy()));
}