From 7e161064bfc1aa642cf3298cb124e337a5aebbff Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Sun, 12 Dec 2021 19:28:32 -0800 Subject: [PATCH] asserts --- src/frontend.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend.rs b/src/frontend.rs index 56def17..54fce00 100644 --- a/src/frontend.rs +++ b/src/frontend.rs @@ -224,6 +224,7 @@ impl LocalTracker { if self.cur_block.is_none() { return; } + assert_ne!(value, Value::undef()); log::trace!("set: local {} value {:?}", local, value); self.in_cur_block.insert(local, value); @@ -248,7 +249,7 @@ impl LocalTracker { if self.is_sealed(at_block) { if let Some(end_mapping) = self.block_end.get(&at_block) { if let Some(&value) = end_mapping.get(&local) { - log::trace!(" -> {:?}", value); + log::trace!(" -> from end_mapping: {:?}", value); return value; } }