summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-08-26 15:05:55 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-08-26 15:05:55 +0000
commit7da047c9fb633a9e11392d5d464041330b8a5d62 (patch)
tree505627eb67a2e6c62458708c1f10c35c6988f7f0 /llvm/lib/CodeGen
parentf3d166aa1eefc95ec3721cf47583351a6d6a8e17 (diff)
downloadbcm5719-llvm-7da047c9fb633a9e11392d5d464041330b8a5d62.tar.gz
bcm5719-llvm-7da047c9fb633a9e11392d5d464041330b8a5d62.zip
SelectionDAG: Use correct pointer size when splitting vector stores
llvm-svn: 189224
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index fd5f97718f5..52990c3dd76 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -1270,7 +1270,7 @@ SDValue DAGTypeLegalizer::SplitVecOp_STORE(StoreSDNode *N, unsigned OpNo) {
// Increment the pointer to the other half.
Ptr = DAG.getNode(ISD::ADD, DL, Ptr.getValueType(), Ptr,
- DAG.getIntPtrConstant(IncrementSize));
+ DAG.getConstant(IncrementSize, Ptr.getValueType()));
if (isTruncating)
Hi = DAG.getTruncStore(Ch, DL, Hi, Ptr,
OpenPOWER on IntegriCloud