diff options
| author | vanhauser-thc <vh@thc.org> | 2023-10-21 15:29:46 +0200 |
|---|---|---|
| committer | vanhauser-thc <vh@thc.org> | 2023-10-21 15:29:46 +0200 |
| commit | eaa6a1754a2efa54903959a5b3ce3d433dcdea37 (patch) | |
| tree | 148f0c2c459c972f56a7a8f5bef3d5205aaf6d83 /instrumentation/SanitizerCoveragePCGUARD.so.cc | |
| parent | 389c88c0f3d33974e2efb79114ee2d16b8570102 (diff) | |
| parent | b50b2e822f410c10e3e3ce9f20ba4547f2e0cbc4 (diff) | |
| download | afl++-eaa6a1754a2efa54903959a5b3ce3d433dcdea37.tar.gz | |
Merge branch 'dev' of ssh://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'instrumentation/SanitizerCoveragePCGUARD.so.cc')
| -rw-r--r-- | instrumentation/SanitizerCoveragePCGUARD.so.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc index 98c5973c..588eb950 100644 --- a/instrumentation/SanitizerCoveragePCGUARD.so.cc +++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc @@ -214,7 +214,11 @@ llvmGetPassPluginInfo() { #if LLVM_VERSION_MAJOR == 13 using OptimizationLevel = typename PassBuilder::OptimizationLevel; #endif +#if LLVM_VERSION_MAJOR >= 16 + PB.registerOptimizerEarlyEPCallback( +#else PB.registerOptimizerLastEPCallback( +#endif [](ModulePassManager &MPM, OptimizationLevel OL) { MPM.addPass(ModuleSanitizerCoverageAFL()); |
