Convert TargetData::getIndexedOffset to use ArrayRef.
[oota-llvm.git] / lib / Transforms / IPO / MergeFunctions.cpp
index bba3067dc44b9560f9c43d8233f99ffd022ba7d1..f3d7e46ad2da800236815e5fb3f1f624603cf57c 100644 (file)
@@ -346,9 +346,9 @@ bool FunctionComparator::isEquivalentGEP(const GEPOperator *GEP1,
     SmallVector<Value *, 8> Indices1(GEP1->idx_begin(), GEP1->idx_end());
     SmallVector<Value *, 8> Indices2(GEP2->idx_begin(), GEP2->idx_end());
     uint64_t Offset1 = TD->getIndexedOffset(GEP1->getPointerOperandType(),
-                                            Indices1.data(), Indices1.size());
+                                            Indices1);
     uint64_t Offset2 = TD->getIndexedOffset(GEP2->getPointerOperandType(),
-                                            Indices2.data(), Indices2.size());
+                                            Indices2);
     return Offset1 == Offset2;
   }