Convert SimplifyGEPInst to use ArrayRef.
[oota-llvm.git] / lib / Analysis / PHITransAddr.cpp
index 70dcd0df242d1948abb434646dd277e1203a25cb..05476115bc484c3b49f90a7ceb7bc11215fef6a6 100644 (file)
@@ -228,7 +228,7 @@ Value *PHITransAddr::PHITranslateSubExpr(Value *V, BasicBlock *CurBB,
       return GEP;
 
     // Simplify the GEP to handle 'gep x, 0' -> x etc.
-    if (Value *V = SimplifyGEPInst(&GEPOps[0], GEPOps.size(), TD, DT)) {
+    if (Value *V = SimplifyGEPInst(GEPOps, TD, DT)) {
       for (unsigned i = 0, e = GEPOps.size(); i != e; ++i)
         RemoveInstInputs(GEPOps[i], InstInputs);