diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-19 15:07:52 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-19 15:07:52 +0000 |
commit | b9b54ebfed02f0654897d37e8a4448d3f8087558 (patch) | |
tree | 8bdb4816b8fc391e63610f245c48ff9baa93459f /lib/Transforms/InstCombine | |
parent | ca12a2139e7ed8b5f30df9927494dd7aae929a7c (diff) | |
download | llvm-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.cpp | 2 |
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); |