aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-10-10 18:36:26 +0000
committerChris Lattner <sabre@nondot.org>2010-10-10 18:36:26 +0000
commit07e3a38c78d2788e05d716e7fa552b9449c87c33 (patch)
treec29bdeee9511c0f4a49324610e606493c1591a5c /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent749dc72bdcf214b1a3e2b4eee37e836a39e6bdea (diff)
downloadexternal_llvm-07e3a38c78d2788e05d716e7fa552b9449c87c33.zip
external_llvm-07e3a38c78d2788e05d716e7fa552b9449c87c33.tar.gz
external_llvm-07e3a38c78d2788e05d716e7fa552b9449c87c33.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 95aa445..c777949 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -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()));
}