stop using me thods that take a vector


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34206 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvm-upgrade/UpgradeParser.y.cvs b/tools/llvm-upgrade/UpgradeParser.y.cvs
index c003ffe..124fb6a 100644
--- a/tools/llvm-upgrade/UpgradeParser.y.cvs
+++ b/tools/llvm-upgrade/UpgradeParser.y.cvs
@@ -1287,7 +1287,7 @@
   }
 
   const Type *IdxTy =
-    GetElementPtrInst::getIndexedType(PTy, VIndices, true);
+    GetElementPtrInst::getIndexedType(PTy, &VIndices[0], VIndices.size(), true);
     if (!IdxTy)
       error("Index list invalid for constant getelementptr");
   return IdxTy;
@@ -3483,7 +3483,7 @@
     upgradeGEPIndices(Ty, $4, VIndices);
 
     Value* tmpVal = getVal(Ty, $3);
-    $$.I = new GetElementPtrInst(tmpVal, VIndices);
+    $$.I = new GetElementPtrInst(tmpVal, &VIndices[0], VIndices.size());
     $$.S = Signless;
     delete $2.PAT;
     delete $4;