[llvm-commits] [llvm] r51917 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Scott Michel scottm at aero.org
Tue Jun 3 12:13:20 PDT 2008


Author: pingbak
Date: Tue Jun  3 14:13:20 2008
New Revision: 51917

URL: http://llvm.org/viewvc/llvm-project?rev=51917&view=rev
Log:
Fix spellnig error

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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=51917&r1=51916&r2=51917&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Jun  3 14:13:20 2008
@@ -4447,12 +4447,11 @@
 
     unsigned VT2 = Tmp2.getValueType();
     assert(VT2 == Tmp3.getValueType()
-           && "PromoteOp: Operands 2 and 3 ValueTypes don't match");
-    // Ensure tha NVT is the same as the operands' value types, because we
-    // cannot assume that TLI.getSetCCValueType() is constant.
-    if (NVT != VT2)
-      NVT = VT2;
-    Result = DAG.getNode(ISD::SELECT, NVT, Node->getOperand(0), Tmp2, Tmp3);
+           && "PromoteOp SELECT: Operands 2 and 3 ValueTypes don't match");
+    // Ensure that the resulting node is at least the same size as the operands'
+    // value types, because we cannot assume that TLI.getSetCCValueType() is
+    // constant.
+    Result = DAG.getNode(ISD::SELECT, VT2, Node->getOperand(0), Tmp2, Tmp3);
     break;
   }
   case ISD::SELECT_CC:





More information about the llvm-commits mailing list