File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1086,7 +1086,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
1086
1086
ecx : & MiriInterpCx < ' tcx > ,
1087
1087
instance : ty:: Instance < ' tcx > ,
1088
1088
) -> InterpResult < ' tcx > {
1089
- let attrs = ecx. tcx . codegen_fn_attrs ( instance. def_id ( ) ) ;
1089
+ let attrs = ecx. tcx . codegen_instance_attrs ( instance. def ) ;
1090
1090
if attrs
1091
1091
. target_features
1092
1092
. iter ( )
@@ -1790,7 +1790,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
1790
1790
ecx. tcx. sess. opts. unstable_opts. cross_crate_inline_threshold,
1791
1791
InliningThreshold :: Always
1792
1792
) || !matches ! (
1793
- ecx. tcx. codegen_fn_attrs ( instance. def_id ( ) ) . inline,
1793
+ ecx. tcx. codegen_instance_attrs ( instance. def ) . inline,
1794
1794
InlineAttr :: Never
1795
1795
) ;
1796
1796
!is_generic && !can_be_inlined
You can’t perform that action at this time.
0 commit comments