diff options
| author | hexcoder- <heiko@hexco.de> | 2020-05-15 01:55:33 +0200 |
|---|---|---|
| committer | hexcoder- <heiko@hexco.de> | 2020-05-15 01:55:33 +0200 |
| commit | 182b8a4582c6935507cb8514df09bf2676a78447 (patch) | |
| tree | 95450e277eeaf6e34204538fcfc49e44eb372c03 /llvm_mode/LLVMInsTrim.so.cc | |
| parent | 97bddc8cfa5920cd4926a69c09db27c55d70be08 (diff) | |
| download | afl++-182b8a4582c6935507cb8514df09bf2676a78447.tar.gz | |
llvm_mode: lower llvm version reqs to 3.4 (LLInsTrim will not be
available)
Diffstat (limited to 'llvm_mode/LLVMInsTrim.so.cc')
| -rw-r--r-- | llvm_mode/LLVMInsTrim.so.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm_mode/LLVMInsTrim.so.cc b/llvm_mode/LLVMInsTrim.so.cc index 4b8f8754..7dc96bc3 100644 --- a/llvm_mode/LLVMInsTrim.so.cc +++ b/llvm_mode/LLVMInsTrim.so.cc @@ -160,9 +160,21 @@ struct InsTrim : public ModulePass { else #else if (ngram_size_str) +#ifdef LLVM_VERSION_STRING FATAL( "Sorry, NGRAM branch coverage is not supported with llvm version %s!", LLVM_VERSION_STRING); +#else +#ifndef LLVM_VERSION_PATCH + FATAL( + "Sorry, NGRAM branch coverage is not supported with llvm version %d.%d.%d!", + LLVM_VERSION_MAJOR, LLVM_VERSION_MINOR, 0); +#else + FATAL( + "Sorry, NGRAM branch coverage is not supported with llvm version %d.%d.%d!", + LLVM_VERSION_MAJOR, LLVM_VERSION_MINOR, LLVM_VERISON_PATCH); +#endif +#endif #endif PrevLocSize = 1; |
