mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-17 15:10:07 +00:00
Prevent crash on long double.
llvm-svn: 42103
This commit is contained in:
parent
9deea8ed1a
commit
83b2001d42
@ -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().
|
||||
|
Loading…
x
Reference in New Issue
Block a user