diff options
author | van Hauser <vh@thc.org> | 2022-02-27 17:25:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 17:25:42 +0100 |
commit | 819a1539a6f043df498f3062323fb4e2fe4a1035 (patch) | |
tree | 4d5ff3313c115460589221b6d9c84dc6005d8d75 /instrumentation/compare-transform-pass.so.cc | |
parent | ba7ec5123278183f5b923012a92ed1334649e901 (diff) | |
parent | e996112fbcf2051865c7d2b7334a1aae9f05f75b (diff) | |
download | afl++-819a1539a6f043df498f3062323fb4e2fe4a1035.tar.gz |
Merge pull request #1337 from devnexen/llvm_13_plus_fix
Fix build for the LLVM pass for LLVM >= 13
Diffstat (limited to 'instrumentation/compare-transform-pass.so.cc')
-rw-r--r-- | instrumentation/compare-transform-pass.so.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/instrumentation/compare-transform-pass.so.cc b/instrumentation/compare-transform-pass.so.cc index be4dd513..cd3f0e6f 100644 --- a/instrumentation/compare-transform-pass.so.cc +++ b/instrumentation/compare-transform-pass.so.cc @@ -80,12 +80,14 @@ class CompareTransform : public ModulePass { } +#if LLVM_MAJOR < 11 #if LLVM_VERSION_MAJOR >= 4 StringRef getPassName() const override { #else const char *getPassName() const override { #endif +#endif #if LLVM_MAJOR >= 11 /* use new pass manager */ PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); |