Skip to content

Commit

Permalink
Re-add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Nov 19, 2019
1 parent 8936d67 commit e02dc4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shims/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx

trace!("miri_start_panic: {:?}", this.frame().span);

// Get the raw pointer stored in arg[0] (the panic payload).
let scalar = this.read_immediate(args[0])?;
assert!(this.machine.panic_payload.is_none(), "the panic runtime should avoid double-panics");
this.machine.panic_payload = Some(scalar);
Expand Down

0 comments on commit e02dc4a

Please sign in to comment.