We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b64021 commit 8a2a9dbCopy full SHA for 8a2a9db
src/allocator.rs
@@ -104,7 +104,8 @@ fn create_const_value_function(
104
tcx.sess.default_visibility(),
105
)));
106
107
- func.add_attribute(FnAttribute::AlwaysInline);
+ // FIXME(antoyo): cg_llvm sets AlwaysInline, but AlwaysInline is different in GCC and using
108
+ // it here will causes linking errors when using LTO.
109
func.add_attribute(FnAttribute::Inline);
110
}
111
0 commit comments