File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- e4662966273ed58b51f9ff8d682accc202aa1210
1+ ebd8557637b33cc09b6ee8273f3154d5d3af6a15
Original file line number Diff line number Diff line change @@ -1081,7 +1081,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
10811081 ecx : & MiriInterpCx < ' tcx > ,
10821082 instance : ty:: Instance < ' tcx > ,
10831083 ) -> InterpResult < ' tcx > {
1084- let attrs = ecx. tcx . codegen_fn_attrs ( instance. def_id ( ) ) ;
1084+ let attrs = ecx. tcx . codegen_instance_attrs ( instance. def ) ;
10851085 if attrs
10861086 . target_features
10871087 . iter ( )
@@ -1785,7 +1785,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
17851785 ecx. tcx. sess. opts. unstable_opts. cross_crate_inline_threshold,
17861786 InliningThreshold :: Always
17871787 ) || !matches ! (
1788- ecx. tcx. codegen_fn_attrs ( instance. def_id ( ) ) . inline,
1788+ ecx. tcx. codegen_instance_attrs ( instance. def ) . inline,
17891789 InlineAttr :: Never
17901790 ) ;
17911791 !is_generic && !can_be_inlined
You can’t perform that action at this time.
0 commit comments