summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetData.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-19 14:42:50 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-19 14:42:50 +0000
commit528bedaf5d0d97b706c942260a84b3b406b35be3 (patch)
treeada75b2a962c1f9850135ad202cdd66256028637 /llvm/lib/Target/TargetData.cpp
parent9e100ea1a8939a1eb40a9d7422fcc56f90ccd6f0 (diff)
downloadbcm5719-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.cpp2
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)) {
OpenPOWER on IntegriCloud