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 @@ -1081,7 +1081,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
1081
1081
ecx : & MiriInterpCx < ' tcx > ,
1082
1082
instance : ty:: Instance < ' tcx > ,
1083
1083
) -> InterpResult < ' tcx > {
1084
- let attrs = ecx. tcx . codegen_fn_attrs ( instance. def_id ( ) ) ;
1084
+ let attrs = ecx. tcx . codegen_instance_attrs ( instance. def ) ;
1085
1085
if attrs
1086
1086
. target_features
1087
1087
. iter ( )
@@ -1785,7 +1785,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
1785
1785
ecx. tcx. sess. opts. unstable_opts. cross_crate_inline_threshold,
1786
1786
InliningThreshold :: Always
1787
1787
) || !matches ! (
1788
- ecx. tcx. codegen_fn_attrs ( instance. def_id ( ) ) . inline,
1788
+ ecx. tcx. codegen_instance_attrs ( instance. def ) . inline,
1789
1789
InlineAttr :: Never
1790
1790
) ;
1791
1791
!is_generic && !can_be_inlined
You can’t perform that action at this time.
0 commit comments