From 2b500ce97ee50c4d237702e6121bbd38e56e8ec6 Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Thu, 1 Jun 2023 12:27:34 +0200 Subject: llvm 15 fixes --- instrumentation/SanitizerCoveragePCGUARD.so.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'instrumentation/SanitizerCoveragePCGUARD.so.cc') 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"), -- cgit 1.4.1