Fix spellnig error
authorScott Michel <scottm@aero.org>
Tue, 3 Jun 2008 19:13:20 +0000 (19:13 +0000)
committerScott Michel <scottm@aero.org>
Tue, 3 Jun 2008 19:13:20 +0000 (19:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51917 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 3ec4181a2d43bf380d043c333e10062cfe4e2370..99f1a0355d547e89c2f1a446aef3af4296e520ed 100644 (file)
@@ -4447,12 +4447,11 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
 
     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: