libafl_cc fixes for clang 16 (#1010)

None constant being deprecated, it is recommended
to use the std::nullopt_t type instead.
This commit is contained in:
David CARLIER 2023-01-23 10:00:42 +00:00 committed by GitHub
parent 7fd9ac0952
commit 3b68399cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,11 @@ typedef long double max_align_t;
#define HAVE_VECTOR_INTRINSICS 1
#endif
#if LLVM_VERSION_MAJOR >= 16
#include <optional>
constexpr std::nullopt_t None = std::nullopt;
#endif
#ifdef USE_NEW_PM
#include "llvm/Passes/PassPlugin.h"
#include "llvm/Passes/PassBuilder.h"