diff options
| author | Jay Foad <jay.foad@gmail.com> | 2011-07-19 14:01:37 +0000 | 
|---|---|---|
| committer | Jay Foad <jay.foad@gmail.com> | 2011-07-19 14:01:37 +0000 | 
| commit | bf904773bb917c7fee56ad103b611d50d3ef3bd9 (patch) | |
| tree | 71f6b256e0370fab5f2c2fe215e91d797f63cea7 /llvm/lib/Transforms/IPO | |
| parent | f4b14a2b0d0130e07944e59ac23c21578b62729e (diff) | |
| download | bcm5719-llvm-bf904773bb917c7fee56ad103b611d50d3ef3bd9.tar.gz bcm5719-llvm-bf904773bb917c7fee56ad103b611d50d3ef3bd9.zip  | |
Convert TargetData::getIndexedOffset to use ArrayRef.
llvm-svn: 135478
Diffstat (limited to 'llvm/lib/Transforms/IPO')
| -rw-r--r-- | llvm/lib/Transforms/IPO/MergeFunctions.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp index bba3067dc44..f3d7e46ad2d 100644 --- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp +++ b/llvm/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;    }  | 

