summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
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
commitb992a635fbc849c9b24852224326b18d140a63b9 (patch)
tree9c02ae0583847aee0069df744ad74b6bccfd4c04 /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
parent528bedaf5d0d97b706c942260a84b3b406b35be3 (diff)
downloadbcm5719-llvm-b992a635fbc849c9b24852224326b18d140a63b9.tar.gz
bcm5719-llvm-b992a635fbc849c9b24852224326b18d140a63b9.zip
Convert SimplifyGEPInst to use ArrayRef.
llvm-svn: 135482
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 34f553102a1..021ca13257b 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud