diff options
author | van Hauser <vh@thc.org> | 2020-05-05 20:10:54 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-05-05 20:10:54 +0200 |
commit | 00683d06c2dc4a021929f25c86b8b426542c4e40 (patch) | |
tree | 5fd7a27f9e002ce1b158fe663828cfaf56714c1b /llvm_mode/afl-llvm-pass.so.cc | |
parent | a38980c80babbb75038766c49774effc0bfa8222 (diff) | |
download | afl++-00683d06c2dc4a021929f25c86b8b426542c4e40.tar.gz |
fix LTO mode
Diffstat (limited to 'llvm_mode/afl-llvm-pass.so.cc')
-rw-r--r-- | llvm_mode/afl-llvm-pass.so.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm_mode/afl-llvm-pass.so.cc b/llvm_mode/afl-llvm-pass.so.cc index c0391b04..0d9e0aba 100644 --- a/llvm_mode/afl-llvm-pass.so.cc +++ b/llvm_mode/afl-llvm-pass.so.cc @@ -583,8 +583,7 @@ bool AFLCoverage::runOnModule(Module &M) { GlobalVariable *AFLFinalLoc = new GlobalVariable( M, Int32Ty, true, GlobalValue::ExternalLinkage, 0, - "__afl_final_loc", 0, GlobalVariable::GeneralDynamicTLSModel, 0, - false); + "__afl_final_loc"); ConstantInt *const_loc = ConstantInt::get(Int32Ty, map_size); StoreInst * StoreFinalLoc = IRB.CreateStore(const_loc, AFLFinalLoc); StoreFinalLoc->setMetadata(M.getMDKindID("nosanitize"), |