Fix the assertion which checks the size of the input operand.
authorNadav Rotem <nadav.rotem@intel.com>
Tue, 13 Sep 2011 20:03:38 +0000 (20:03 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Tue, 13 Sep 2011 20:03:38 +0000 (20:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139633 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp

index c192185ba557638c15e2eb2c2f175ad38784de66..7c59c7eb5a0eadfc5fa37850398c2e3a644aca27 100644 (file)
@@ -266,7 +266,7 @@ SDValue VectorLegalizer::ExpandVSELECT(SDValue Op) {
   // 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);