@@ -481,7 +481,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
481
481
place : & MPlaceTy < ' tcx , Provenance > ,
482
482
) -> InterpResult < ' tcx > {
483
483
let this = self . eval_context_ref ( ) ;
484
- let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ) ?;
484
+ let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ( ) ) ?;
485
485
if let crate :: AllocExtra {
486
486
weak_memory : Some ( alloc_buffers) ,
487
487
data_race : Some ( alloc_clocks) ,
@@ -512,7 +512,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
512
512
init : Scalar < Provenance > ,
513
513
) -> InterpResult < ' tcx > {
514
514
let this = self . eval_context_mut ( ) ;
515
- let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ) ?;
515
+ let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ( ) ) ?;
516
516
if let (
517
517
crate :: AllocExtra { weak_memory : Some ( alloc_buffers) , .. } ,
518
518
crate :: MiriMachine { data_race : Some ( global) , threads, .. } ,
@@ -539,7 +539,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
539
539
) -> InterpResult < ' tcx , Scalar < Provenance > > {
540
540
let this = self . eval_context_ref ( ) ;
541
541
if let Some ( global) = & this. machine . data_race {
542
- let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ) ?;
542
+ let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ( ) ) ?;
543
543
if let Some ( alloc_buffers) = this. get_alloc_extra ( alloc_id) ?. weak_memory . as_ref ( ) {
544
544
if atomic == AtomicReadOrd :: SeqCst {
545
545
global. sc_read ( & this. machine . threads ) ;
@@ -577,7 +577,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
577
577
init : Scalar < Provenance > ,
578
578
) -> InterpResult < ' tcx > {
579
579
let this = self . eval_context_mut ( ) ;
580
- let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( dest. ptr ) ?;
580
+ let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( dest. ptr ( ) ) ?;
581
581
if let (
582
582
crate :: AllocExtra { weak_memory : Some ( alloc_buffers) , .. } ,
583
583
crate :: MiriMachine { data_race : Some ( global) , threads, .. } ,
@@ -627,7 +627,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
627
627
global. sc_read ( & this. machine . threads ) ;
628
628
}
629
629
let size = place. layout . size ;
630
- let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ) ?;
630
+ let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ( ) ) ?;
631
631
if let Some ( alloc_buffers) = this. get_alloc_extra ( alloc_id) ?. weak_memory . as_ref ( ) {
632
632
let buffer = alloc_buffers
633
633
. get_or_create_store_buffer ( alloc_range ( base_offset, size) , init) ?;
0 commit comments