Skip to content

Commit 100dfce

Browse files
committed
Fix #[inline(always)] attribute
1 parent 9030b70 commit 100dfce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/attributes.rs

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
5353
codegen_fn_attrs.inline
5454
};
5555
if let Some(attr) = inline_attr(cx, inline) {
56+
if let FnAttribute::AlwaysInline = attr {
57+
func.add_attribute(FnAttribute::Inline);
58+
}
5659
func.add_attribute(attr);
5760
}
5861

0 commit comments

Comments
 (0)