[llvm-commits] [llvm] r158927 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Pete Cooper peter_cooper at apple.com
Thu Jun 21 11:00:39 PDT 2012


Author: pete
Date: Thu Jun 21 13:00:39 2012
New Revision: 158927

URL: http://llvm.org/viewvc/llvm-project?rev=158927&view=rev
Log:
Fix potential crash if DAGCombine on stores sees a half type

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=158927&r1=158926&r2=158927&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Jun 21 13:00:39 2012
@@ -7124,7 +7124,8 @@
       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;





More information about the llvm-commits mailing list