@@ -122,11 +122,11 @@ pub fn create_ecx<'a, 'mir: 'a, 'tcx: 'mir>(
122122
123123 // First argument: pointer to main()
124124 let main_ptr = ecx. memory_mut ( ) . create_fn_alloc ( main_instance) . with_default_tag ( ) ;
125- let dest = ecx. eval_place ( & mir:: Place :: Local ( args. next ( ) . unwrap ( ) ) ) ?;
125+ let dest = ecx. eval_place ( & mir:: Place :: Base ( mir :: PlaceBase :: Local ( args. next ( ) . unwrap ( ) ) ) ) ?;
126126 ecx. write_scalar ( Scalar :: Ptr ( main_ptr) , dest) ?;
127127
128128 // Second argument (argc): 1
129- let dest = ecx. eval_place ( & mir:: Place :: Local ( args. next ( ) . unwrap ( ) ) ) ?;
129+ let dest = ecx. eval_place ( & mir:: Place :: Base ( mir :: PlaceBase :: Local ( args. next ( ) . unwrap ( ) ) ) ) ?;
130130 let argc = Scalar :: from_uint ( config. args . len ( ) as u128 , dest. layout . size ) ;
131131 ecx. write_scalar ( argc, dest) ?;
132132 // Store argc for macOS _NSGetArgc
@@ -138,7 +138,7 @@ pub fn create_ecx<'a, 'mir: 'a, 'tcx: 'mir>(
138138
139139 // FIXME: extract main source file path
140140 // Third argument (argv): Created from config.args
141- let dest = ecx. eval_place ( & mir:: Place :: Local ( args. next ( ) . unwrap ( ) ) ) ?;
141+ let dest = ecx. eval_place ( & mir:: Place :: Base ( mir :: PlaceBase :: Local ( args. next ( ) . unwrap ( ) ) ) ) ?;
142142 // For Windows, construct a command string with all the aguments
143143 let mut cmd = String :: new ( ) ;
144144 for arg in config. args . iter ( ) {
@@ -437,12 +437,12 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for Evaluator<'tcx> {
437437
438438 // First argument: size
439439 // (0 is allowed here, this is expected to be handled by the lang item)
440- let arg = ecx. eval_place ( & mir:: Place :: Local ( args. next ( ) . unwrap ( ) ) ) ?;
440+ let arg = ecx. eval_place ( & mir:: Place :: Base ( mir :: PlaceBase :: Local ( args. next ( ) . unwrap ( ) ) ) ) ?;
441441 let size = layout. size . bytes ( ) ;
442442 ecx. write_scalar ( Scalar :: from_uint ( size, arg. layout . size ) , arg) ?;
443443
444444 // Second argument: align
445- let arg = ecx. eval_place ( & mir:: Place :: Local ( args. next ( ) . unwrap ( ) ) ) ?;
445+ let arg = ecx. eval_place ( & mir:: Place :: Base ( mir :: PlaceBase :: Local ( args. next ( ) . unwrap ( ) ) ) ) ?;
446446 let align = layout. align . abi . bytes ( ) ;
447447 ecx. write_scalar ( Scalar :: from_uint ( align, arg. layout . size ) , arg) ?;
448448
0 commit comments