Skip to content

Commit a312329

Browse files
saethlinRalfJung
andauthored
Update src/machine.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 1ca3c29 commit a312329

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/miri/src/machine.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,6 +1192,8 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
11921192
if frame.extra.is_user_relevant {
11931193
// All that we store is whether or not the frame we just removed is local, so now we
11941194
// have no idea where the next topmost local frame is. So we recompute it.
1195+
// (If this ever becomes a bottleneck, we could have `push` store the previous
1196+
// user-relevant frame and restore that here.)
11951197
ecx.active_thread_mut().recompute_top_user_relevant_frame();
11961198
}
11971199
let timing = frame.extra.timing.take();

0 commit comments

Comments
 (0)