[sancov] Fix an unused variable warning introduced in r245067
authorJustin Bogner <mail@justinbogner.com>
Fri, 14 Aug 2015 17:03:45 +0000 (17:03 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 14 Aug 2015 17:03:45 +0000 (17:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245072 91177308-0d34-0410-b5e6-96231b3b80d8

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;