diff options
author | David Carlier <devnexen@gmail.com> | 2020-03-31 19:25:24 +0100 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2020-03-31 19:25:24 +0100 |
commit | 48655c2e128b0cb72f2ed1f5b2e4f8f9982a50de (patch) | |
tree | 43eb63bf42808c607861488771f5ba41f57c22ac | |
parent | d0d5518ea893b62c96d26e48a444fd33af56d27c (diff) | |
download | afl++-48655c2e128b0cb72f2ed1f5b2e4f8f9982a50de.tar.gz |
llvm_mode: using MaybeAlign wrapper over the deprecated setter.
seems to be available even on LLVM 3.7
-rw-r--r-- | llvm_mode/afl-llvm-lto-instrumentation.so.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_mode/afl-llvm-lto-instrumentation.so.cc b/llvm_mode/afl-llvm-lto-instrumentation.so.cc index 4bc16f17..89bedb8c 100644 --- a/llvm_mode/afl-llvm-lto-instrumentation.so.cc +++ b/llvm_mode/afl-llvm-lto-instrumentation.so.cc @@ -378,7 +378,7 @@ bool AFLLTOPass::runOnModule(Module &M) { M, Int32Ty, true, GlobalValue::ExternalLinkage, 0, "__afl_final_loc", 0, GlobalVariable::GeneralDynamicTLSModel, 0, false); ConstantInt *const_loc = ConstantInt::get(Int32Ty, afl_global_id); - AFLFinalLoc->setAlignment(4); + AFLFinalLoc->setAlignment(MaybeAlign(4)); AFLFinalLoc->setInitializer(const_loc); } |