Skip to content

Commit 81debbd

Browse files
authored
Merge branch 'master' into sysroot
2 parents 0a9f9e0 + f090362 commit 81debbd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5c45343f11fbf93cf4e15568aee3ff3f2f287466
1+
1cbd8a4d686d1411105f26cddf876c5994e69593

src/fn_call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a + 'mir>: crate::MiriEvalContextExt<'
361361
// Directly return to caller.
362362
StackPopCleanup::Goto(Some(ret)),
363363
)?;
364-
let mut args = this.frame().mir.args_iter();
364+
let mut args = this.frame().body.args_iter();
365365

366366
let arg_local = args.next().ok_or_else(||
367367
InterpError::AbiViolation(

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub fn create_ecx<'a, 'mir: 'a, 'tcx: 'mir>(
125125
StackPopCleanup::None { cleanup: true },
126126
)?;
127127

128-
let mut args = ecx.frame().mir.args_iter();
128+
let mut args = ecx.frame().body.args_iter();
129129

130130
// First argument: pointer to `main()`.
131131
let main_ptr = ecx.memory_mut().create_fn_alloc(main_instance);
@@ -252,7 +252,7 @@ pub fn eval_main<'a, 'tcx: 'a>(
252252
};
253253
e.print_backtrace();
254254
if let Some(frame) = ecx.stack().last() {
255-
let block = &frame.mir.basic_blocks()[frame.block];
255+
let block = &frame.body.basic_blocks()[frame.block];
256256
let span = if frame.stmt < block.statements.len() {
257257
block.statements[frame.stmt].source_info.span
258258
} else {
@@ -451,7 +451,7 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for Evaluator<'tcx> {
451451
StackPopCleanup::None { cleanup: true },
452452
)?;
453453

454-
let mut args = ecx.frame().mir.args_iter();
454+
let mut args = ecx.frame().body.args_iter();
455455
let layout = ecx.layout_of(dest.layout.ty.builtin_deref(false).unwrap().ty)?;
456456

457457
// First argument: `size`.

src/tls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
148148
Some(ret_place),
149149
StackPopCleanup::None { cleanup: true },
150150
)?;
151-
let arg_local = this.frame().mir.args_iter().next().ok_or_else(
151+
let arg_local = this.frame().body.args_iter().next().ok_or_else(
152152
|| InterpError::AbiViolation("TLS dtor does not take enough arguments.".to_owned()),
153153
)?;
154154
let dest = this.eval_place(&mir::Place::Base(mir::PlaceBase::Local(arg_local)))?;

0 commit comments

Comments
 (0)