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 | 7b54de0925ad741408f765a9ccf5b89f7d063b23 (patch) | |
tree | 6bf96417cbe3857502b0a514d00b00f291eccff9 /lib | |
parent | a69005aa0f0707ccc95e155e8a0139abf7b398aa (diff) | |
download | external_llvm-7b54de0925ad741408f765a9ccf5b89f7d063b23.zip external_llvm-7b54de0925ad741408f765a9ccf5b89f7d063b23.tar.gz external_llvm-7b54de0925ad741408f765a9ccf5b89f7d063b23.tar.bz2 |
Fix spellnig error
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 3ec4181..99f1a03 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/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: |