Other parts of the SelectionDAG framework assume that targets use their pointer type...
authorOwen Anderson <resistor@mac.com>
Mon, 2 May 2011 22:25:45 +0000 (22:25 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 2 May 2011 22:25:45 +0000 (22:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130733 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index c2711c8097d0f6e88621fa39d8085084e55b98c4..dd33205c5de576ec20af8dfd11d3979af9e9d9de 100644 (file)
@@ -6304,7 +6304,7 @@ SDValue SelectionDAG::UnrollVectorOp(SDNode *N, unsigned ResNE) {
         Operands[j] = getNode(ISD::EXTRACT_VECTOR_ELT, dl,
                               OperandEltVT,
                               Operand,
-                              getConstant(i, MVT::i32));
+                              getConstant(i, TLI.getPointerTy()));
       } else {
         // A scalar operand; just use it as is.
         Operands[j] = Operand;