summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorManuel Jacob <me@manueljacob.de>2016-01-17 22:46:43 +0000
committerManuel Jacob <me@manueljacob.de>2016-01-17 22:46:43 +0000
commit20c6d5bcb8ad508d07b3be91a28ba4b93131c33d (patch)
tree49aebe7493d8a2e704591ad5b75c7faba0172ffb /llvm/lib/Transforms
parent190577ac81d6c7ef6c58850cfbbb3bf18c7c7fab (diff)
downloadbcm5719-llvm-20c6d5bcb8ad508d07b3be91a28ba4b93131c33d.tar.gz
bcm5719-llvm-20c6d5bcb8ad508d07b3be91a28ba4b93131c33d.zip
[opaque pointer types] [breaking-change] [NFC] SimplifyGEPInst: take the source element type of the GEP as an argument.
Patch by Eduard Burtescu. Reviewers: dblaikie, mjacob Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16281 llvm-svn: 258024
Diffstat (limited to 'llvm/lib/Transforms')
-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 903a0b5f540..c872e080950 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -1334,7 +1334,7 @@ Value *InstCombiner::SimplifyVectorOp(BinaryOperator &Inst) {
Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
SmallVector<Value*, 8> Ops(GEP.op_begin(), GEP.op_end());
- if (Value *V = SimplifyGEPInst(Ops, DL, TLI, DT, AC))
+ if (Value *V = SimplifyGEPInst(GEP.getSourceElementType(), Ops, DL, TLI, DT, AC))
return ReplaceInstUsesWith(GEP, V);
Value *PtrOp = GEP.getOperand(0);
OpenPOWER on IntegriCloud