Merge pull request #288 from devnexen/llvm_mode_little_upd

llvm_mode: using MaybeAlign wrapper over the deprecated setter.
This commit is contained in:
hexcoder 2020-04-02 10:55:58 +02:00 committed by GitHub
commit c69c84da09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}