commit | 8f28aaf72c61a493dfcd1b838ff8c5050352b5cd | [log] [tgz] |
---|---|---|
author | Nadav Rotem <nadav.rotem@intel.com> | Tue Sep 13 20:03:38 2011 +0000 |
committer | Nadav Rotem <nadav.rotem@intel.com> | Tue Sep 13 20:03:38 2011 +0000 |
tree | a315c455e261bda8d9c1ed1667e7072d7c035fd2 | |
parent | 302fdecf9dfa43060a440e5581f223ed2ea7652a [diff] [blame] |
Fix the assertion which checks the size of the input operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139633 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp index c192185..7c59c7e 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
@@ -266,7 +266,7 @@ // Implement VSELECT in terms of XOR, AND, OR // on platforms which do not support blend natively. EVT VT = Op.getOperand(0).getValueType(); - EVT OVT = Op.getOperand(0).getValueType(); + EVT OVT = Op.getOperand(1).getValueType(); DebugLoc DL = Op.getDebugLoc(); SDValue Mask = Op.getOperand(0);