summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-13 17:39:10 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-13 17:39:10 +0000
commite82c286fba51ffabd4979cedb3a3b2c9b02ec0f4 (patch)
tree3e979e156395350e71172e4150e2bed0865b180b /llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
parentc8f02e7540117f9f1fdfa500bc899e14232b5712 (diff)
downloadbcm5719-llvm-e82c286fba51ffabd4979cedb3a3b2c9b02ec0f4.tar.gz
bcm5719-llvm-e82c286fba51ffabd4979cedb3a3b2c9b02ec0f4.zip
Instrumentation: Remove ilist iterator implicit conversions, NFC
llvm-svn: 250186
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
index 8ecfda64f1d..b038d684db2 100644
--- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -144,7 +144,7 @@ bool InstrProfiling::runOnModule(Module &M) {
void InstrProfiling::lowerIncrement(InstrProfIncrementInst *Inc) {
GlobalVariable *Counters = getOrCreateRegionCounters(Inc);
- IRBuilder<> Builder(Inc->getParent(), *Inc);
+ IRBuilder<> Builder(Inc);
uint64_t Index = Inc->getIndex()->getZExtValue();
Value *Addr = Builder.CreateConstInBoundsGEP2_64(Counters, 0, Index);
Value *Count = Builder.CreateLoad(Addr, "pgocount");
OpenPOWER on IntegriCloud