diff options
author | vanhauser-thc <vh@thc.org> | 2022-01-19 22:26:52 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-01-19 22:26:52 +0100 |
commit | 550ba4d77294e61597a5259d00769c61281e0042 (patch) | |
tree | af05b120a58fb5bb4c353b141062b931026f3d34 /instrumentation/afl-llvm-pass.so.cc | |
parent | 25c8336c0c45e44c569997627b133491cbc4d252 (diff) | |
download | afl++-550ba4d77294e61597a5259d00769c61281e0042.tar.gz |
nits and code format
Diffstat (limited to 'instrumentation/afl-llvm-pass.so.cc')
-rw-r--r-- | instrumentation/afl-llvm-pass.so.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/instrumentation/afl-llvm-pass.so.cc b/instrumentation/afl-llvm-pass.so.cc index 899734f8..5246ba08 100644 --- a/instrumentation/afl-llvm-pass.so.cc +++ b/instrumentation/afl-llvm-pass.so.cc @@ -631,18 +631,23 @@ bool AFLCoverage::runOnModule(Module &M) { LoadInst *PrevLoc; if (ngram_size) { + PrevLoc = IRB.CreateLoad( #if LLVM_VERSION_MAJOR >= 14 - PrevLocTy, + PrevLocTy, #endif - AFLPrevLoc); + AFLPrevLoc); + } else { + PrevLoc = IRB.CreateLoad( #if LLVM_VERSION_MAJOR >= 14 - IRB.getInt32Ty(), + IRB.getInt32Ty(), #endif - AFLPrevLoc); + AFLPrevLoc); + } + PrevLoc->setMetadata(M.getMDKindID("nosanitize"), MDNode::get(C, None)); Value *PrevLocTrans; |