diff options
author | Scott Michel <scottm@aero.org> | 2008-06-03 19:13:20 +0000 |
---|---|---|
committer | Scott Michel <scottm@aero.org> | 2008-06-03 19:13:20 +0000 |
commit | a7d8649f781eb85612601266801ff154ca601281 (patch) | |
tree | 2d384461c8cdfa5a3415802d0fd0a9dd466b7297 /llvm/lib/CodeGen/SelectionDAG | |
parent | 6c871c086639dd4bb6ca460afb4e0be96bb3fa54 (diff) | |
download | bcm5719-llvm-a7d8649f781eb85612601266801ff154ca601281.tar.gz bcm5719-llvm-a7d8649f781eb85612601266801ff154ca601281.zip |
Fix spellnig error
llvm-svn: 51917
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 3ec4181a2d4..99f1a0355d5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -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: |