summaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-19 15:07:52 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-19 15:07:52 +0000
commitb9b54ebfed02f0654897d37e8a4448d3f8087558 (patch)
tree8bdb4816b8fc391e63610f245c48ff9baa93459f /lib/Transforms/InstCombine
parentca12a2139e7ed8b5f30df9927494dd7aae929a7c (diff)
downloadllvm-b9b54ebfed02f0654897d37e8a4448d3f8087558.tar.gz
llvm-b9b54ebfed02f0654897d37e8a4448d3f8087558.tar.bz2
llvm-b9b54ebfed02f0654897d37e8a4448d3f8087558.tar.xz
Convert SimplifyGEPInst to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine')
-rw-r--r--lib/Transforms/InstCombine/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp
index 34f553102a..021ca13257 100644
--- a/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -742,7 +742,7 @@ Type *InstCombiner::FindElementAtOffset(Type *Ty, int64_t Offset,
Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
SmallVector<Value*, 8> Ops(GEP.op_begin(), GEP.op_end());
- if (Value *V = SimplifyGEPInst(&Ops[0], Ops.size(), TD))
+ if (Value *V = SimplifyGEPInst(Ops, TD))
return ReplaceInstUsesWith(GEP, V);
Value *PtrOp = GEP.getOperand(0);