aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2012-06-21 18:00:39 +0000
committerPete Cooper <peter_cooper@apple.com>2012-06-21 18:00:39 +0000
commit438c04027bb5f219e8d77770828a555c42fd1d7c (patch)
treee85a65000a4c161b01b87da01bbc2e243287a200 /lib/CodeGen
parentd5e11ad51a3966c0b80ce2119946cd1aa3558aec (diff)
downloadexternal_llvm-438c04027bb5f219e8d77770828a555c42fd1d7c.zip
external_llvm-438c04027bb5f219e8d77770828a555c42fd1d7c.tar.gz
external_llvm-438c04027bb5f219e8d77770828a555c42fd1d7c.tar.bz2
Fix potential crash if DAGCombine on stores sees a half type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 95dd2e6..7babf4a 100644
--- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -7124,7 +7124,8 @@ SDValue DAGCombiner::visitSTORE(SDNode *N) {
SDValue Tmp;
switch (CFP->getValueType(0).getSimpleVT().SimpleTy) {
default: llvm_unreachable("Unknown FP type");
- case MVT::f80: // We don't do this for these yet.
+ case MVT::f16: // We don't do this for these yet.
+ case MVT::f80:
case MVT::f128:
case MVT::ppcf128:
break;