Use the Align type when parsing alignment attributes
This commit is contained in:
@@ -417,7 +417,7 @@ pub fn from_fn_attrs<'ll, 'tcx>(
|
||||
to_add.push(llvm::CreateAttrString(cx.llcx, "cmse_nonsecure_entry"));
|
||||
}
|
||||
if let Some(align) = codegen_fn_attrs.alignment {
|
||||
llvm::set_alignment(llfn, align as usize);
|
||||
llvm::set_alignment(llfn, align);
|
||||
}
|
||||
to_add.extend(sanitize_attrs(cx, codegen_fn_attrs.no_sanitize));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user