[sancov] Fix an unused variable warning introduced in r245067
[oota-llvm.git] / lib / Transforms / Instrumentation / SanitizerCoverage.cpp
index 8a6ab4bff3503662a89a1c3a1af85409f7c40c0f..3bcb8de1c4f3689d03422cb0edcc112fb8096009 100644 (file)
@@ -437,7 +437,7 @@ void SanitizerCoverageModule::InjectCoverageAtBlock(Function &F, BasicBlock &BB,
   // locations.
   if (isa<UnreachableInst>(BB.getTerminator()))
     return;
-  BasicBlock::iterator IP = BB.getFirstInsertionPt(), BE = BB.end();
+  BasicBlock::iterator IP = BB.getFirstInsertionPt();
 
   bool IsEntryBB = &BB == &F.getEntryBlock();
   DebugLoc EntryLoc;