From 528bedaf5d0d97b706c942260a84b3b406b35be3 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Tue, 19 Jul 2011 14:42:50 +0000 Subject: Convert gep_type_begin and gep_type_end to use ArrayRef. llvm-svn: 135481 --- llvm/lib/Target/TargetData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/TargetData.cpp') diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index 5ef932ffc8c..1dfd9a83daf 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/lib/Target/TargetData.cpp @@ -528,7 +528,7 @@ uint64_t TargetData::getIndexedOffset(Type *ptrTy, uint64_t Result = 0; generic_gep_type_iterator - TI = gep_type_begin(ptrTy, Indices.begin(), Indices.end()); + TI = gep_type_begin(ptrTy, Indices); for (unsigned CurIDX = 0, EndIDX = Indices.size(); CurIDX != EndIDX; ++CurIDX, ++TI) { if (StructType *STy = dyn_cast(*TI)) { -- cgit v1.2.3