Skip to content

Commit c1be95c

Browse files
committed
Add missing inline attribute
1 parent da63add commit c1be95c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/allocator.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,14 @@ fn create_const_value_function(
9999
let func = context.new_function(None, FunctionType::Exported, output, &[], name, false);
100100

101101
#[cfg(feature = "master")]
102-
func.add_attribute(FnAttribute::Visibility(symbol_visibility_to_gcc(
103-
tcx.sess.default_visibility(),
104-
)));
102+
{
103+
func.add_attribute(FnAttribute::Visibility(symbol_visibility_to_gcc(
104+
tcx.sess.default_visibility(),
105+
)));
105106

106-
func.add_attribute(FnAttribute::AlwaysInline);
107+
func.add_attribute(FnAttribute::AlwaysInline);
108+
func.add_attribute(FnAttribute::Inline);
109+
}
107110

108111
if tcx.sess.must_emit_unwind_tables() {
109112
// TODO(antoyo): emit unwind tables.

0 commit comments

Comments
 (0)