about summary refs log tree commit diff
path: root/instrumentation/SanitizerCoverageLTO.so.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-03-28 19:29:04 +0200
committerGitHub <noreply@github.com>2023-03-28 19:29:04 +0200
commit661b626c87d623fe67db854d43d4ff37c3895109 (patch)
tree2e835bdf34f923dea7a511abaace3763edddaeab /instrumentation/SanitizerCoverageLTO.so.cc
parent214e24fff0e44704007e71dee8384f6382770381 (diff)
parent67e8c4f100903bf8111435f0ce574806d961cbad (diff)
downloadafl++-661b626c87d623fe67db854d43d4ff37c3895109.tar.gz
Merge pull request #1686 from tuliom/minor-fixes
Minor fixes
Diffstat (limited to 'instrumentation/SanitizerCoverageLTO.so.cc')
-rw-r--r--instrumentation/SanitizerCoverageLTO.so.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc
index f82224ed..85f13c19 100644
--- a/instrumentation/SanitizerCoverageLTO.so.cc
+++ b/instrumentation/SanitizerCoverageLTO.so.cc
@@ -1787,14 +1787,16 @@ static void registerLTOPass(const PassManagerBuilder &,
 
 }
 
+#if LLVM_VERSION_MAJOR < 16
 static RegisterStandardPasses RegisterCompTransPass(
     PassManagerBuilder::EP_OptimizerLast, registerLTOPass);
 
 static RegisterStandardPasses RegisterCompTransPass0(
     PassManagerBuilder::EP_EnabledOnOptLevel0, registerLTOPass);
 
-#if LLVM_VERSION_MAJOR >= 11
+  #if LLVM_VERSION_MAJOR >= 11
 static RegisterStandardPasses RegisterCompTransPassLTO(
     PassManagerBuilder::EP_FullLinkTimeOptimizationLast, registerLTOPass);
+  #endif
 #endif