Fix #[inline(always)] attribute

This commit is contained in:
Antoni Boucher 2023-10-11 20:55:32 -04:00
parent 9030b70421
commit 100dfced20

View File

@ -53,6 +53,9 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
codegen_fn_attrs.inline
};
if let Some(attr) = inline_attr(cx, inline) {
if let FnAttribute::AlwaysInline = attr {
func.add_attribute(FnAttribute::Inline);
}
func.add_attribute(attr);
}