Dump return value when returning.

This commit is contained in:
Scott Olson
2016-11-26 19:13:22 -08:00
parent 020f0b782b
commit 78b29b360a
+4 -1
View File
@@ -29,7 +29,10 @@ pub(super) fn eval_terminator(
) -> 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),