From: Dale Johannesen Date: Tue, 18 Sep 2007 18:36:59 +0000 (+0000) Subject: Prevent crash on long double. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c7b21d520ac0400c5661dca2fb67a17ef65c6ac4;p=oota-llvm.git Prevent crash on long double. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42103 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 68158be1670..771515539a5 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -3798,6 +3798,10 @@ SDOperand DAGCombiner::visitSTORE(SDNode *N) { SDOperand Tmp; switch (CFP->getValueType(0)) { default: assert(0 && "Unknown FP type"); + case MVT::f80: // We don't do this for these yet. + case MVT::f128: + case MVT::ppcf128: + break; case MVT::f32: if (!AfterLegalize || TLI.isTypeLegal(MVT::i32)) { Tmp = DAG.getConstant((uint32_t)CFP->getValueAPF().