summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine
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
commitbf904773bb917c7fee56ad103b611d50d3ef3bd9 (patch)
tree71f6b256e0370fab5f2c2fe215e91d797f63cea7 /llvm/lib/Transforms/InstCombine
parentf4b14a2b0d0130e07944e59ac23c21578b62729e (diff)
downloadbcm5719-llvm-bf904773bb917c7fee56ad103b611d50d3ef3bd9.tar.gz
bcm5719-llvm-bf904773bb917c7fee56ad103b611d50d3ef3bd9.zip
Convert TargetData::getIndexedOffset to use ArrayRef.
llvm-svn: 135478
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 12096476fff..c33dec1740f 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -266,8 +266,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
// Get the current byte offset into the thing. Use the original
// operand in case we're looking through a bitcast.
SmallVector<Value*, 8> Ops(GEP->idx_begin(), GEP->idx_end());
- Offset = TD->getIndexedOffset(GEP->getPointerOperandType(),
- Ops.data(), Ops.size());
+ Offset = TD->getIndexedOffset(GEP->getPointerOperandType(), Ops);
Op1 = GEP->getPointerOperand()->stripPointerCasts();
OpenPOWER on IntegriCloud