Skip to content

Commit aa82970

Browse files
committed
Fix gcc
1 parent 91fe3b7 commit aa82970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_gcc/src/attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
4747
let inline = if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::NAKED) {
4848
InlineAttr::Never
4949
} else if codegen_fn_attrs.inline == InlineAttr::None
50-
&& tcx.cross_crate_inlinable(instance.def_id())
50+
&& cx.tcx.cross_crate_inlinable(instance.def_id())
5151
{
5252
InlineAttr::Hint
5353
} else {

0 commit comments

Comments
 (0)