diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-03-04 11:33:51 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-03-04 11:33:51 +0100 |
commit | 8f538e77ed75256466e8b97d43d0c32948cb9931 (patch) | |
tree | 683c23bfb04f3db5c4fd69f9b5e264e66d47c045 /instrumentation/afl-llvm-pass.so.cc | |
parent | 1e76079e93f5b4a9729367dd982d632013669bc5 (diff) | |
download | afl++-8f538e77ed75256466e8b97d43d0c32948cb9931.tar.gz |
code format
Diffstat (limited to 'instrumentation/afl-llvm-pass.so.cc')
-rw-r--r-- | instrumentation/afl-llvm-pass.so.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/instrumentation/afl-llvm-pass.so.cc b/instrumentation/afl-llvm-pass.so.cc index d06d3201..33898aec 100644 --- a/instrumentation/afl-llvm-pass.so.cc +++ b/instrumentation/afl-llvm-pass.so.cc @@ -356,9 +356,8 @@ bool AFLCoverage::runOnModule(Module &M) { if (has_calls) { Value *NewCtx = ConstantInt::get(Int32Ty, AFL_R(map_size)); - if (ctx_str) - NewCtx = IRB.CreateXor(PrevCtx, NewCtx); - StoreInst * StoreCtx = IRB.CreateStore(NewCtx, AFLContext); + if (ctx_str) NewCtx = IRB.CreateXor(PrevCtx, NewCtx); + StoreInst *StoreCtx = IRB.CreateStore(NewCtx, AFLContext); StoreCtx->setMetadata(M.getMDKindID("nosanitize"), MDNode::get(C, None)); |