Convert TargetData::getIndexedOffset to use ArrayRef.
[oota-llvm.git] / lib / Transforms / InstCombine / InstCombineCalls.cpp
index 12096476fffa20256d87b3644156ed5f476b575b..c33dec1740f7de5d24aacf61843a89425935e8b4 100644 (file)
@@ -266,8 +266,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
       // Get the current byte offset into the thing. Use the original
       // operand in case we're looking through a bitcast.
       SmallVector<Value*, 8> Ops(GEP->idx_begin(), GEP->idx_end());
-      Offset = TD->getIndexedOffset(GEP->getPointerOperandType(),
-                                    Ops.data(), Ops.size());
+      Offset = TD->getIndexedOffset(GEP->getPointerOperandType(), Ops);
 
       Op1 = GEP->getPointerOperand()->stripPointerCasts();