only set frame location during push after preamble is done
This commit is contained in:
parent
c94ed5ca91
commit
5154b66586
@ -640,7 +640,7 @@ pub fn push_stack_frame(
|
|||||||
// first push a stack frame so we have access to the local substs
|
// first push a stack frame so we have access to the local substs
|
||||||
let pre_frame = Frame {
|
let pre_frame = Frame {
|
||||||
body,
|
body,
|
||||||
loc: Some(mir::Location::START),
|
loc: None, // `None` for errors generated before we start evaluating.
|
||||||
return_to_block,
|
return_to_block,
|
||||||
return_place,
|
return_place,
|
||||||
// empty local array, we fill it in below, after we are inside the stack frame and
|
// empty local array, we fill it in below, after we are inside the stack frame and
|
||||||
@ -683,6 +683,7 @@ pub fn push_stack_frame(
|
|||||||
}
|
}
|
||||||
// done
|
// done
|
||||||
self.frame_mut().locals = locals;
|
self.frame_mut().locals = locals;
|
||||||
|
self.frame_mut().loc = Some(mir::Location::START);
|
||||||
|
|
||||||
M::after_stack_push(self)?;
|
M::after_stack_push(self)?;
|
||||||
info!("ENTERING({}) {}", self.frame_idx(), self.frame().instance);
|
info!("ENTERING({}) {}", self.frame_idx(), self.frame().instance);
|
||||||
|
Loading…
Reference in New Issue
Block a user