about summary refs log tree commit diff
path: root/llvm_mode/SanitizerCoverageLTO.so.cc
diff options
context:
space:
mode:
Diffstat (limited to 'llvm_mode/SanitizerCoverageLTO.so.cc')
-rw-r--r--llvm_mode/SanitizerCoverageLTO.so.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm_mode/SanitizerCoverageLTO.so.cc b/llvm_mode/SanitizerCoverageLTO.so.cc
index f7ddcdba..62dd38ea 100644
--- a/llvm_mode/SanitizerCoverageLTO.so.cc
+++ b/llvm_mode/SanitizerCoverageLTO.so.cc
@@ -1330,6 +1330,7 @@ void ModuleSanitizerCoverage::InjectCoverageAtBlock(Function &F, BasicBlock &BB,
   if (Options.TracePCGuard) {
 
     // afl++ START
+    ++afl_global_id
 
     if (documentFile) {
 
@@ -1342,7 +1343,7 @@ void ModuleSanitizerCoverage::InjectCoverageAtBlock(Function &F, BasicBlock &BB,
 
     /* Set the ID of the inserted basic block */
 
-    ConstantInt *CurLoc = ConstantInt::get(Int32Tyi, ++afl_global_id);
+    ConstantInt *CurLoc = ConstantInt::get(Int32Tyi, afl_global_id);
 
     /* Load SHM pointer */