mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 01:01:33 +00:00
llvm_mode: using MaybeAlign wrapper over the deprecated setter.
seems to be available even on LLVM 3.7
This commit is contained in:
parent
d40866add2
commit
2455f081fc
@ -378,7 +378,7 @@ bool AFLLTOPass::runOnModule(Module &M) {
|
|||||||
M, Int32Ty, true, GlobalValue::ExternalLinkage, 0, "__afl_final_loc", 0,
|
M, Int32Ty, true, GlobalValue::ExternalLinkage, 0, "__afl_final_loc", 0,
|
||||||
GlobalVariable::GeneralDynamicTLSModel, 0, false);
|
GlobalVariable::GeneralDynamicTLSModel, 0, false);
|
||||||
ConstantInt *const_loc = ConstantInt::get(Int32Ty, afl_global_id);
|
ConstantInt *const_loc = ConstantInt::get(Int32Ty, afl_global_id);
|
||||||
AFLFinalLoc->setAlignment(4);
|
AFLFinalLoc->setAlignment(MaybeAlign(4));
|
||||||
AFLFinalLoc->setInitializer(const_loc);
|
AFLFinalLoc->setInitializer(const_loc);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user