From 1726ec2cc7d5e155b4eba333c1500ab4f49835dd Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Sat, 11 Dec 2021 22:40:01 -0800 Subject: [PATCH] WIP. --- src/frontend.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend.rs b/src/frontend.rs index 9ad5854..0337391 100644 --- a/src/frontend.rs +++ b/src/frontend.rs @@ -157,6 +157,9 @@ fn parse_body<'a>( log::trace!("checking if block is sealed: {}", block); assert!(builder.locals.is_sealed(block)); } + for value in &builder.body.values { + assert!(value != &ValueDef::Placeholder); + } trace!("Final function body:{:?}", ret);