Dump return value when returning.
This commit is contained in:
parent
020f0b782b
commit
78b29b360a
@ -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…
x
Reference in New Issue
Block a user