about summary refs log tree commit diff
path: root/instrumentation/compare-transform-pass.so.cc
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2022-02-24 14:50:44 +0000
committerDavid Carlier <devnexen@gmail.com>2022-02-24 14:50:44 +0000
commite996112fbcf2051865c7d2b7334a1aae9f05f75b (patch)
tree9f47c341273fe4be8f873fe617176c94aa2e2fda /instrumentation/compare-transform-pass.so.cc
parentfee1acf7e6096533f1aa8cd74035bed21c90fdf6 (diff)
downloadafl++-e996112fbcf2051865c7d2b7334a1aae9f05f75b.tar.gz
Fix build for the LLVM pass for LLVM >= 13
Due to change of inheritance for more modern LLVM versions, the overridable
members are not the same.
Diffstat (limited to 'instrumentation/compare-transform-pass.so.cc')
-rw-r--r--instrumentation/compare-transform-pass.so.cc2
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);