Convert ConstantFoldGetElementPtr to use ArrayRef.

llvm-svn: 135483
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp
index e9c049e..d790c33 100644
--- a/llvm/lib/VMCore/Constants.cpp
+++ b/llvm/lib/VMCore/Constants.cpp
@@ -1594,7 +1594,8 @@
 
 Constant *ConstantExpr::getGetElementPtr(Constant *C, Value* const *Idxs,
                                          unsigned NumIdx, bool InBounds) {
-  if (Constant *FC = ConstantFoldGetElementPtr(C, InBounds, Idxs, NumIdx))
+  if (Constant *FC = ConstantFoldGetElementPtr(C, InBounds,
+                                               makeArrayRef(Idxs, NumIdx)))
     return FC;          // Fold a few common cases.
 
   // Get the result type of the getelementptr!