Dump return value when returning.
This commit is contained in:
parent
020f0b782b
commit
78b29b360a
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
|||
) -> EvalResult<'tcx, ()> {
|
||||
use rustc::mir::TerminatorKind::*;
|
||||
match terminator.kind {
|
||||
Return => self.pop_stack_frame()?,
|
||||
Return => {
|
||||
self.dump_local(self.frame().return_lvalue);
|
||||
self.pop_stack_frame()?
|
||||
}
|
||||
|
||||
Goto { target } => self.goto_block(target),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue