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 91fe3b7 commit aa82970Copy full SHA for aa82970
compiler/rustc_codegen_gcc/src/attributes.rs
@@ -47,7 +47,7 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
47
let inline = if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::NAKED) {
48
InlineAttr::Never
49
} else if codegen_fn_attrs.inline == InlineAttr::None
50
- && tcx.cross_crate_inlinable(instance.def_id())
+ && cx.tcx.cross_crate_inlinable(instance.def_id())
51
{
52
InlineAttr::Hint
53
} else {
0 commit comments