summaryrefslogtreecommitdiffstats
path: root/llvm/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
commiteb313a46fc80e10f7911c7effff3475186c92a17 (patch)
tree6787e35761db4a40950305d278caacbe60236990 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parentd10babfd65abc2b90d17f3587082b7920887ccb0 (diff)
downloadbcm5719-llvm-eb313a46fc80e10f7911c7effff3475186c92a17.tar.gz
bcm5719-llvm-eb313a46fc80e10f7911c7effff3475186c92a17.zip
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. llvm-svn: 116169
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 95aa445f4f1..c7779495ec1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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()));
}
OpenPOWER on IntegriCloud