diff options
author | vanhauser-thc <vh@thc.org> | 2021-11-03 13:18:02 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-11-03 13:18:02 +0100 |
commit | 7a7630ae91c87e000b40f63c592fad9e09ad45d3 (patch) | |
tree | 1a8840fca5a92593079af9735f4b91443bc682e3 /instrumentation/SanitizerCoveragePCGUARD.so.cc | |
parent | ccded9fc5cfead1b88104484c4acde12e81e0afe (diff) | |
download | AFLplusplus-7a7630ae91c87e000b40f63c592fad9e09ad45d3.tar.gz |
support llvm >= 11
Diffstat (limited to 'instrumentation/SanitizerCoveragePCGUARD.so.cc')
-rw-r--r-- | instrumentation/SanitizerCoveragePCGUARD.so.cc | 7 |
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 + } } |