From 017c8a694067325f5c1058f1565beb008b855db7 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Fri, 21 Aug 2020 14:39:47 +0200 Subject: fix global id documentation for LTO pcguard --- llvm_mode/SanitizerCoverageLTO.so.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm_mode') 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 */ -- cgit 1.4.1