diff options
Diffstat (limited to 'instrumentation')
-rw-r--r-- | instrumentation/SanitizerCoveragePCGUARD.so.cc | 4 | ||||
-rw-r--r-- | instrumentation/afl-llvm-common.h | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc index 859b4e7b..0919ba35 100644 --- a/instrumentation/SanitizerCoveragePCGUARD.so.cc +++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc @@ -23,6 +23,10 @@ #include "llvm/IR/CFG.h" #endif #include "llvm/IR/Constant.h" +#if LLVM_VERSION_MAJOR >= 20 + #include "llvm/IR/Constants.h" + #include "llvm/IR/ValueSymbolTable.h" +#endif #include "llvm/IR/DataLayout.h" #if LLVM_VERSION_MAJOR < 15 #include "llvm/IR/DebugInfo.h" diff --git a/instrumentation/afl-llvm-common.h b/instrumentation/afl-llvm-common.h index 98c4c7c9..434476c4 100644 --- a/instrumentation/afl-llvm-common.h +++ b/instrumentation/afl-llvm-common.h @@ -10,9 +10,9 @@ #include <fstream> #ifdef __has_include -#if __has_include(<optional>) -#include <optional> -#endif + #if __has_include(<optional>) + #include <optional> + #endif #endif #include <sys/time.h> |