diff options
author | van Hauser <vh@thc.org> | 2020-08-20 13:37:34 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-08-20 13:37:34 +0200 |
commit | 3cdaf4dcf204d3efb55153daf22c231d445b3e4a (patch) | |
tree | 635c0c5c4e6d67288c2135e8b47c9af8e87641e5 /llvm_mode/LLVMInsTrim.so.cc | |
parent | f92607cff121c90416914526271bbf14df26bf29 (diff) | |
download | afl++-3cdaf4dcf204d3efb55153daf22c231d445b3e4a.tar.gz |
sancov enhancement
Diffstat (limited to 'llvm_mode/LLVMInsTrim.so.cc')
-rw-r--r-- | llvm_mode/LLVMInsTrim.so.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm_mode/LLVMInsTrim.so.cc b/llvm_mode/LLVMInsTrim.so.cc index 206e2682..6b2aaf23 100644 --- a/llvm_mode/LLVMInsTrim.so.cc +++ b/llvm_mode/LLVMInsTrim.so.cc @@ -181,10 +181,16 @@ struct InsTrim : public ModulePass { #ifdef AFL_HAVE_VECTOR_INTRINSICS // IntegerType *Int64Ty = IntegerType::getInt64Ty(C); - uint64_t PrevLocVecSize = PowerOf2Ceil(PrevLocSize); + int PrevLocVecSize = PowerOf2Ceil(PrevLocSize); IntegerType *IntLocTy = IntegerType::getIntNTy(C, sizeof(PREV_LOC_T) * CHAR_BIT); - if (ngram_size) PrevLocTy = VectorType::get(IntLocTy, PrevLocVecSize); + if (ngram_size) + PrevLocTy = VectorType::get(IntLocTy, PrevLocVecSize + #if LLVM_VERSION_MAJOR >= 12 + , + false + #endif + ); #endif /* Get globals for the SHM region and the previous location. Note that |