summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-13 16:59:33 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-13 16:59:33 +0000
commit9f8aaf21bae6296668bfe5f150da5fa1b0800d05 (patch)
tree2194322cdaca33bc746afc13248a5b24c2b2c1ab /llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
parentc58656c7c06dd77a501f99d032a3db006e60359a (diff)
downloadbcm5719-llvm-9f8aaf21bae6296668bfe5f150da5fa1b0800d05.tar.gz
bcm5719-llvm-9f8aaf21bae6296668bfe5f150da5fa1b0800d05.zip
InstCombine: Remove ilist iterator implicit conversions, NFC
Stop relying on implicit conversions of ilist iterators in LLVMInstCombine. No functionality change intended. llvm-svn: 250183
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
index 89fd3de0b79..79f49b993a8 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
@@ -83,7 +83,7 @@ Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI,
PointerType *PTy = cast<PointerType>(CI.getType());
BuilderTy AllocaBuilder(*Builder);
- AllocaBuilder.SetInsertPoint(AI.getParent(), &AI);
+ AllocaBuilder.SetInsertPoint(&AI);
// Get the type really allocated and the type casted to.
Type *AllocElTy = AI.getAllocatedType();
OpenPOWER on IntegriCloud