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 | ca12a2139e7ed8b5f30df9927494dd7aae929a7c (patch) | |
tree | 44f06b53124dd34cdd6f1ec9771550d25fef644f /lib/Target/TargetData.cpp | |
parent | 8fbbb3980755d74539a0aed02bc18842ed2bd18d (diff) |
Convert gep_type_begin and gep_type_end to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 5ef932ffc8..1dfd9a83da 100644 --- a/lib/Target/TargetData.cpp +++ b/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)) { |