about summary refs log tree commit diff
path: root/instrumentation/afl-llvm-pass.so.cc
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2022-01-19 23:03:19 +0100
committerDominik Maier <domenukk@gmail.com>2022-01-19 23:03:19 +0100
commit1d9d5936d953841d9244031271871d4225569b89 (patch)
treee83a8e94cedae2006d221f5c11b3bd96d6157158 /instrumentation/afl-llvm-pass.so.cc
parent7afad147d17a7e7bfb7fa3235187277056f2bae3 (diff)
parent550ba4d77294e61597a5259d00769c61281e0042 (diff)
downloadafl++-1d9d5936d953841d9244031271871d4225569b89.tar.gz
Merge remote-tracking branch 'origin/dev' into dev
Diffstat (limited to 'instrumentation/afl-llvm-pass.so.cc')
-rw-r--r--instrumentation/afl-llvm-pass.so.cc13
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;