OSDN Git Service

Fix a type in the legalization of CONCAT_VECTORS.
authorNadav Rotem <nadav.rotem@intel.com>
Thu, 20 Oct 2011 13:38:16 +0000 (13:38 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Thu, 20 Oct 2011 13:38:16 +0000 (13:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142579 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

index a5c4c2d..4553071 100644 (file)
@@ -2926,7 +2926,7 @@ SDValue DAGTypeLegalizer::PromoteIntRes_SCALAR_TO_VECTOR(SDNode *N) {
 SDValue DAGTypeLegalizer::PromoteIntRes_CONCAT_VECTORS(SDNode *N) {
   DebugLoc dl = N->getDebugLoc();
 
-  SDValue Op0 = N->getOperand(1);
+  SDValue Op0 = N->getOperand(0);
   SDValue Op1 = N->getOperand(1);
   assert(Op0.getValueType() == Op1.getValueType() &&
          "Invalid input vector types");