summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2019-06-10 23:20:04 +0000
committerRong Xu <xur@google.com>2019-06-10 23:20:04 +0000
commit7ea131c20c113b78085301a1acd7b28884ec131e (patch)
tree25bfd78be601bede580b9a8da687a4649ef3887f /llvm
parent141c2b768db09569cfa227bd258be41593ba206d (diff)
downloadbcm5719-llvm-7ea131c20c113b78085301a1acd7b28884ec131e.tar.gz
bcm5719-llvm-7ea131c20c113b78085301a1acd7b28884ec131e.zip
[PGO] Fix the buildbot failure in r362995
Fixed one unused variable warning. llvm-svn: 363004
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
index 1bf80d63500..6fec3c9c79e 100644
--- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
@@ -798,14 +798,11 @@ BasicBlock *FuncPGOInstrumentation<Edge, BBInfo>::getInstrBB(Edge *E) {
if (DestBB == nullptr)
return SrcBB;
- auto canInstrument = [this](BasicBlock *BB) -> BasicBlock * {
+ auto canInstrument = [](BasicBlock *BB) -> BasicBlock * {
// There are basic blocks (such as catchswitch) cannot be instrumented.
// If the returned first insertion point is the end of BB, skip this BB.
- if (BB->getFirstInsertionPt() == BB->end()) {
- LLVM_DEBUG(dbgs() << "Cannot instrument BB index=" << getBBInfo(BB).Index
- << "\n");
+ if (BB->getFirstInsertionPt() == BB->end())
return nullptr;
- }
return BB;
};
OpenPOWER on IntegriCloud