diff options
author | hexcoder- <heiko@hexco.de> | 2021-06-01 18:36:28 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-06-01 18:36:28 +0200 |
commit | 97225f1f6f55366a8e2702652dd2e3e1f65b72d5 (patch) | |
tree | 2e71d14b2908eccb16cd07e28454b8b31960d54e /instrumentation/SanitizerCoverageLTO.so.cc | |
parent | db6947452c6d356e30c7fe1bf6697fe59c0e6a38 (diff) | |
download | afl++-97225f1f6f55366a8e2702652dd2e3e1f65b72d5.tar.gz |
adapt to incompatible LLVM 13 API
Diffstat (limited to 'instrumentation/SanitizerCoverageLTO.so.cc')
-rw-r--r-- | instrumentation/SanitizerCoverageLTO.so.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc index 20f1856e..74ef03df 100644 --- a/instrumentation/SanitizerCoverageLTO.so.cc +++ b/instrumentation/SanitizerCoverageLTO.so.cc @@ -1500,6 +1500,9 @@ void ModuleSanitizerCoverage::InjectCoverageAtBlock(Function &F, BasicBlock &BB, if (use_threadsafe_counters) { /* Atomic */ IRB.CreateAtomicRMW(llvm::AtomicRMWInst::BinOp::Add, MapPtrIdx, One, +#if LLVM_VERSION_MAJOR >= 13 + llvm_MaybeAlign(1), +#endif llvm::AtomicOrdering::Monotonic); } else { |