about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2023-04-10 12:38:26 +0100
committerDavid CARLIER <devnexen@gmail.com>2023-04-10 12:38:26 +0100
commita0818c4fceff67e2cff986432c98e3ac1211bdd8 (patch)
tree453c8fb957bb8647ec9d4c382e7822aa7a33c070
parent0782ed38414bed37168feafc971fd102b8294510 (diff)
downloadafl++-a0818c4fceff67e2cff986432c98e3ac1211bdd8.tar.gz
LLVM instrumentation disable build warning.
Since clang 16 is the version for Ubuntu 23 04/Fedora 38 and is easy enough to fix..
-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);