mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
749dc72bdc
commit
07e3a38c78
@ -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()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user