Dump return value when returning.

This commit is contained in:
Scott Olson 2016-11-26 19:13:22 -08:00
parent 020f0b782b
commit 78b29b360a

View File

@ -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),