diff options
author | vanhauser-thc <vh@thc.org> | 2023-06-01 12:27:34 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-06-01 12:27:34 +0200 |
commit | 2b500ce97ee50c4d237702e6121bbd38e56e8ec6 (patch) | |
tree | c154160b6682bfef1d8a76eccb51741b1f203ed9 /instrumentation/SanitizerCoveragePCGUARD.so.cc | |
parent | 9324f3f6289c62451e2add1f7553a7eda0d7d642 (diff) | |
download | afl++-2b500ce97ee50c4d237702e6121bbd38e56e8ec6.tar.gz |
llvm 15 fixes
Diffstat (limited to 'instrumentation/SanitizerCoveragePCGUARD.so.cc')
-rw-r--r-- | instrumentation/SanitizerCoveragePCGUARD.so.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc index 2abc58ec..29ab1427 100644 --- a/instrumentation/SanitizerCoveragePCGUARD.so.cc +++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc @@ -162,9 +162,7 @@ class ModuleSanitizerCoverageAFL void SetNoSanitizeMetadata(Instruction *I) { -#if LLVM_VERSION_MAJOR == 15 - I->setMetadata(LLVMContext::MD_nosanitize, MDNode::get(*C, None)); -#elif LLVM_VERSION_MAJOR >= 16 +#if LLVM_VERSION_MAJOR >= 16 I->setMetadata(LLVMContext::MD_nosanitize, MDNode::get(*C, std::nullopt)); #else I->setMetadata(I->getModule()->getMDKindID("nosanitize"), |