Fixed one unused variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363004
91177308-0d34-0410-b5e6-
96231b3b80d8
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;
};