llvm_mode: using MaybeAlign wrapper over the deprecated setter.

seems to be available even on LLVM 3.7
This commit is contained in:
David Carlier 2020-03-31 19:25:24 +01:00 committed by van Hauser
parent d40866add2
commit 2455f081fc

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