diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-19 14:42:50 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-19 14:42:50 +0000 |
commit | 528bedaf5d0d97b706c942260a84b3b406b35be3 (patch) | |
tree | ada75b2a962c1f9850135ad202cdd66256028637 /llvm/lib/Target/TargetData.cpp | |
parent | 9e100ea1a8939a1eb40a9d7422fcc56f90ccd6f0 (diff) | |
download | bcm5719-llvm-528bedaf5d0d97b706c942260a84b3b406b35be3.tar.gz bcm5719-llvm-528bedaf5d0d97b706c942260a84b3b406b35be3.zip |
Convert gep_type_begin and gep_type_end to use ArrayRef.
llvm-svn: 135481
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r-- | llvm/lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Value* const*> - 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<StructType>(*TI)) { |