@@ -104,7 +104,7 @@ pub fn create_ecx<'a, 'mir: 'a, 'tcx: 'mir>(
104
104
start_mir. span ,
105
105
start_mir,
106
106
Place :: from_ptr ( ret_ptr, align) ,
107
- StackPopCleanup :: None ,
107
+ StackPopCleanup :: None { cleanup : true } ,
108
108
) ?;
109
109
110
110
let mut args = ecx. frame ( ) . mir . args_iter ( ) ;
@@ -124,9 +124,9 @@ pub fn create_ecx<'a, 'mir: 'a, 'tcx: 'mir>(
124
124
let foo = ecx. memory . allocate_static_bytes ( b"foo\0 " ) ;
125
125
let foo_ty = ecx. tcx . mk_imm_ptr ( ecx. tcx . types . u8 ) ;
126
126
let foo_layout = ecx. layout_of ( foo_ty) ?;
127
- let foo_place = ecx. allocate ( foo_layout, MemoryKind :: Stack ) ?; // will be marked as static in just a second
127
+ let foo_place = ecx. allocate ( foo_layout, MemoryKind :: Stack ) ?; // will be interned in just a second
128
128
ecx. write_scalar ( Scalar :: Ptr ( foo) , foo_place. into ( ) ) ?;
129
- ecx. memory . mark_static_initialized ( foo_place. to_ptr ( ) ?. alloc_id , Mutability :: Immutable ) ?; // marked as static
129
+ ecx. memory . intern_static ( foo_place. to_ptr ( ) ?. alloc_id , Mutability :: Immutable ) ?;
130
130
ecx. write_scalar ( foo_place. ptr , dest) ?;
131
131
132
132
assert ! ( args. next( ) . is_none( ) , "start lang item has more arguments than expected" ) ;
@@ -136,7 +136,7 @@ pub fn create_ecx<'a, 'mir: 'a, 'tcx: 'mir>(
136
136
main_mir. span ,
137
137
main_mir,
138
138
Place :: from_scalar_ptr ( Scalar :: from_int ( 1 , ptr_size) . into ( ) , ty:: layout:: Align :: from_bytes ( 1 , 1 ) . unwrap ( ) ) ,
139
- StackPopCleanup :: None ,
139
+ StackPopCleanup :: None { cleanup : true } ,
140
140
) ?;
141
141
142
142
// No arguments
@@ -338,7 +338,7 @@ impl<'mir, 'tcx: 'mir> Machine<'mir, 'tcx> for Evaluator<'tcx> {
338
338
// Don't do anything when we are done. The statement() function will increment
339
339
// the old stack frame's stmt counter to the next statement, which means that when
340
340
// exchange_malloc returns, we go on evaluating exactly where we want to be.
341
- StackPopCleanup :: None ,
341
+ StackPopCleanup :: None { cleanup : true } ,
342
342
) ?;
343
343
344
344
let mut args = ecx. frame ( ) . mir . args_iter ( ) ;
0 commit comments