diff options
author | vanhauser-thc <vh@thc.org> | 2021-06-01 10:13:16 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-06-01 10:13:16 +0200 |
commit | 76653544056ce2334b6523252e91a8f8a6ac9dcb (patch) | |
tree | b5a8b81ae88e16c95d12631326107c3facb6bfec /instrumentation/SanitizerCoveragePCGUARD.so.cc | |
parent | 67b294890ef9b436f44c7eedf633c1df0f85b0b1 (diff) | |
download | afl++-76653544056ce2334b6523252e91a8f8a6ac9dcb.tar.gz |
threadsafe doc fixes, code format
Diffstat (limited to 'instrumentation/SanitizerCoveragePCGUARD.so.cc')
-rw-r--r-- | instrumentation/SanitizerCoveragePCGUARD.so.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc index dbddad0a..4a8c9e28 100644 --- a/instrumentation/SanitizerCoveragePCGUARD.so.cc +++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc @@ -1069,16 +1069,14 @@ void ModuleSanitizerCoverage::InjectCoverageAtBlock(Function &F, BasicBlock &BB, /* Load counter for CurLoc */ - Value * MapPtrIdx = IRB.CreateGEP(MapPtr, CurLoc); + Value *MapPtrIdx = IRB.CreateGEP(MapPtr, CurLoc); if (use_threadsafe_counters) { IRB.CreateAtomicRMW(llvm::AtomicRMWInst::BinOp::Add, MapPtrIdx, One, llvm::AtomicOrdering::Monotonic); - } - else - { + } else { LoadInst *Counter = IRB.CreateLoad(MapPtrIdx); /* Update bitmap */ |