about summary refs log tree commit diff
path: root/instrumentation/SanitizerCoveragePCGUARD.so.cc
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-11-03 13:18:02 +0100
committervanhauser-thc <vh@thc.org>2021-11-03 13:18:02 +0100
commit7a7630ae91c87e000b40f63c592fad9e09ad45d3 (patch)
tree1a8840fca5a92593079af9735f4b91443bc682e3 /instrumentation/SanitizerCoveragePCGUARD.so.cc
parentccded9fc5cfead1b88104484c4acde12e81e0afe (diff)
downloadafl++-7a7630ae91c87e000b40f63c592fad9e09ad45d3.tar.gz
support llvm >= 11
Diffstat (limited to 'instrumentation/SanitizerCoveragePCGUARD.so.cc')
-rw-r--r--instrumentation/SanitizerCoveragePCGUARD.so.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc
index 10c9430e..be3f4f49 100644
--- a/instrumentation/SanitizerCoveragePCGUARD.so.cc
+++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc
@@ -865,7 +865,10 @@ bool ModuleSanitizerCoverage::InjectCoverage(Function &             F,
           cnt_sel++;
           cnt_sel_inc += 2;
 
-        } else if (t->getTypeID() == llvm::Type::FixedVectorTyID) {
+        }
+
+#if LLVM__MAJOR > 11
+        else if (t->getTypeID() == llvm::Type::FixedVectorTyID) {
 
           FixedVectorType *tt = dyn_cast<FixedVectorType>(t);
           if (tt) {
@@ -877,6 +880,8 @@ bool ModuleSanitizerCoverage::InjectCoverage(Function &             F,
 
         }
 
+#endif
+
       }
 
     }