diff options
author | vanhauser-thc <vh@thc.org> | 2021-11-03 12:49:54 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-11-03 12:49:54 +0100 |
commit | ccded9fc5cfead1b88104484c4acde12e81e0afe (patch) | |
tree | 2ed0dc70a25f410bf165a4cd13767ff4251f91ac /instrumentation/SanitizerCoverageLTO.so.cc | |
parent | caf68e5bf25a8a73bcc21b870499b640e7702d85 (diff) | |
download | afl++-ccded9fc5cfead1b88104484c4acde12e81e0afe.tar.gz |
vectorized coverage only possible for llvm 14 :(
Diffstat (limited to 'instrumentation/SanitizerCoverageLTO.so.cc')
-rw-r--r-- | instrumentation/SanitizerCoverageLTO.so.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc index b3a6ba45..fbbe24a2 100644 --- a/instrumentation/SanitizerCoverageLTO.so.cc +++ b/instrumentation/SanitizerCoverageLTO.so.cc @@ -1313,7 +1313,10 @@ void ModuleSanitizerCoverage::instrumentFunction( result = IRB.CreateSelect(condition, val1, val2); inst += 2; - } else if (t->getTypeID() == llvm::Type::FixedVectorTyID) { + } + +#if LLVM_VERSION_MAJOR > 13 + else if (t->getTypeID() == llvm::Type::FixedVectorTyID) { FixedVectorType *tt = dyn_cast<FixedVectorType>(t); if (tt) { @@ -1355,7 +1358,10 @@ void ModuleSanitizerCoverage::instrumentFunction( } - } else { + } else + +#endif + { unhandled++; continue; |