summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2012-12-19 08:28:51 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2012-12-19 08:28:51 +0000
commit88ef514cc63c3f22f78eaf4dd295d349b4070819 (patch)
treeb958c397380884378547bc4a390bd97519174f32 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent67a6ec87be54f84e8c8ea6c49583e9303fecef2c (diff)
downloadllvm-88ef514cc63c3f22f78eaf4dd295d349b4070819.tar.gz
llvm-88ef514cc63c3f22f78eaf4dd295d349b4070819.tar.bz2
llvm-88ef514cc63c3f22f78eaf4dd295d349b4070819.tar.xz
Change TargetLowering::getTruncStoreAction to take MVTs, instead of EVTs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index c7eef8cf9e..6250e64dc6 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -818,7 +818,8 @@ void SelectionDAGLegalize::LegalizeStoreOps(SDNode *Node) {
SDValue Result = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, Lo, Hi);
ReplaceNode(SDValue(Node, 0), Result);
} else {
- switch (TLI.getTruncStoreAction(ST->getValue().getValueType(), StVT)) {
+ switch (TLI.getTruncStoreAction(ST->getValue().getSimpleValueType(),
+ StVT.getSimpleVT())) {
default: llvm_unreachable("This action is not supported yet!");
case TargetLowering::Legal:
// If this is an unaligned store and the target doesn't support it,