Fix potential crash if DAGCombine on stores sees a half type

llvm-svn: 158927
This commit is contained in:
Pete Cooper 2012-06-21 18:00:39 +00:00
parent f60e437168
commit 5b61422d80
1 changed files with 2 additions and 1 deletions

View File

@ -7124,7 +7124,8 @@ SDValue DAGCombiner::visitSTORE(SDNode *N) {
SDValue Tmp; SDValue Tmp;
switch (CFP->getValueType(0).getSimpleVT().SimpleTy) { switch (CFP->getValueType(0).getSimpleVT().SimpleTy) {
default: llvm_unreachable("Unknown FP type"); 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::f128:
case MVT::ppcf128: case MVT::ppcf128:
break; break;