[PGO] Fix the buildbot failure in r362995

Fixed one unused variable warning.

llvm-svn: 363004
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
index 1bf80d6..6fec3c9 100644
--- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
@@ -798,14 +798,11 @@
   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;
   };