summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/MergeFunctions.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-19 14:01:37 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-19 14:01:37 +0000
commit8fbbb3980755d74539a0aed02bc18842ed2bd18d (patch)
tree2fc3d8aa307866ae8c2e2ca38d196c87caa7a435 /lib/Transforms/IPO/MergeFunctions.cpp
parent1d2f569c3428d70d0cf690c9adb459ad4a3ecff2 (diff)
downloadllvm-8fbbb3980755d74539a0aed02bc18842ed2bd18d.tar.gz
llvm-8fbbb3980755d74539a0aed02bc18842ed2bd18d.tar.bz2
llvm-8fbbb3980755d74539a0aed02bc18842ed2bd18d.tar.xz
Convert TargetData::getIndexedOffset to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135478 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/MergeFunctions.cpp')
-rw-r--r--lib/Transforms/IPO/MergeFunctions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp
index bba3067dc4..f3d7e46ad2 100644
--- a/lib/Transforms/IPO/MergeFunctions.cpp
+++ b/lib/Transforms/IPO/MergeFunctions.cpp
@@ -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;
}