aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-08-21 14:39:47 +0200
committervan Hauser <vh@thc.org>2020-08-21 14:39:47 +0200
commit017c8a694067325f5c1058f1565beb008b855db7 (patch)
tree5b7028544baa1ba105a799a6bff85e56e4efbc90
parentb0a783e86ffe7bbd930c342b4e9f8c1f79f258a4 (diff)
downloadafl++-017c8a694067325f5c1058f1565beb008b855db7.tar.gz
fix global id documentation for LTO pcguard
-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 */