Re-add comment
This commit is contained in:
parent
8936d67e7f
commit
e02dc4af4b
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue