about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-04-10 14:35:56 +0200
committerGitHub <noreply@github.com>2023-04-10 14:35:56 +0200
commit1589e17213259091d8199de4f1733fe25bfaf088 (patch)
tree453c8fb957bb8647ec9d4c382e7822aa7a33c070
parent0782ed38414bed37168feafc971fd102b8294510 (diff)
parenta0818c4fceff67e2cff986432c98e3ac1211bdd8 (diff)
downloadafl++-1589e17213259091d8199de4f1733fe25bfaf088.tar.gz
Merge pull request #1697 from devnexen/llvm_instr_warning_fix
LLVM instrumentation disable build warning.
-rw-r--r--instrumentation/SanitizerCoverageLTO.so.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc
index 9691f17f..b024179a 100644
--- a/instrumentation/SanitizerCoverageLTO.so.cc
+++ b/instrumentation/SanitizerCoverageLTO.so.cc
@@ -1781,6 +1781,7 @@ INITIALIZE_PASS_END(ModuleSanitizerCoverageLTOLegacyPass, "sancov-lto",
                     "Pass for instrumenting coverage on functions", false,
                     false)
 
+#if LLVM_VERSION_MAJOR < 16
 static void registerLTOPass(const PassManagerBuilder &,
                             legacy::PassManagerBase &PM) {
 
@@ -1789,7 +1790,6 @@ static void registerLTOPass(const PassManagerBuilder &,
 
 }
 
-#if LLVM_VERSION_MAJOR < 16
 static RegisterStandardPasses RegisterCompTransPass(
     PassManagerBuilder::EP_OptimizerLast, registerLTOPass);