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);