diff options
author | van Hauser <vh@thc.org> | 2023-03-28 19:29:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 19:29:04 +0200 |
commit | 661b626c87d623fe67db854d43d4ff37c3895109 (patch) | |
tree | 2e835bdf34f923dea7a511abaace3763edddaeab /instrumentation/SanitizerCoverageLTO.so.cc | |
parent | 214e24fff0e44704007e71dee8384f6382770381 (diff) | |
parent | 67e8c4f100903bf8111435f0ce574806d961cbad (diff) | |
download | afl++-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.cc | 4 |
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 |