about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder <hexcoder-@users.noreply.github.com>2020-04-02 10:55:58 +0200
committerGitHub <noreply@github.com>2020-04-02 10:55:58 +0200
commitc69c84da09e641ea8ab6c2eb69b67c2c120736b2 (patch)
treef2ca58837578975dfe42bc8677260af6368e2fa9
parent0565fe4213b96a778895799eb61743166be35a0d (diff)
parent48655c2e128b0cb72f2ed1f5b2e4f8f9982a50de (diff)
downloadafl++-c69c84da09e641ea8ab6c2eb69b67c2c120736b2.tar.gz
Merge pull request #288 from devnexen/llvm_mode_little_upd
llvm_mode: using MaybeAlign wrapper over the deprecated setter.
-rw-r--r--llvm_mode/afl-llvm-lto-instrumentation.so.cc2
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);
 
   }