commit | b9b54ebfed02f0654897d37e8a4448d3f8087558 | [log] [tgz] |
---|---|---|
author | Jay Foad <jay.foad@gmail.com> | Tue Jul 19 15:07:52 2011 +0000 |
committer | Jay Foad <jay.foad@gmail.com> | Tue Jul 19 15:07:52 2011 +0000 |
tree | 8bdb4816b8fc391e63610f245c48ff9baa93459f | |
parent | ca12a2139e7ed8b5f30df9927494dd7aae929a7c [diff] [blame] |
Convert SimplifyGEPInst to use ArrayRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135482 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index 34f5531..021ca13 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -742,7 +742,7 @@ 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);