From bf904773bb917c7fee56ad103b611d50d3ef3bd9 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Tue, 19 Jul 2011 14:01:37 +0000 Subject: Convert TargetData::getIndexedOffset to use ArrayRef. llvm-svn: 135478 --- llvm/lib/Analysis/Loads.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/Loads.cpp') diff --git a/llvm/lib/Analysis/Loads.cpp b/llvm/lib/Analysis/Loads.cpp index 1f554a3da26..18f3a3465b5 100644 --- a/llvm/lib/Analysis/Loads.cpp +++ b/llvm/lib/Analysis/Loads.cpp @@ -63,7 +63,7 @@ static Value *getUnderlyingObjectWithOffset(Value *V, const TargetData *TD, return V; SmallVector Indices(GEP->op_begin() + 1, GEP->op_end()); ByteOffset += TD->getIndexedOffset(GEP->getPointerOperandType(), - &Indices[0], Indices.size()); + Indices); V = GEP->getPointerOperand(); } else if (Operator::getOpcode(V) == Instruction::BitCast) { V = cast(V)->getOperand(0); -- cgit v1.2.3