From dc195b22d497a051c921ddb49ce49028e78895fc Mon Sep 17 00:00:00 2001 From: microproofs Date: Sun, 4 Feb 2024 13:06:21 -0500 Subject: [PATCH] missed another hoist over --- crates/aiken-lang/src/gen_uplc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/aiken-lang/src/gen_uplc.rs b/crates/aiken-lang/src/gen_uplc.rs index bb474793..b2495141 100644 --- a/crates/aiken-lang/src/gen_uplc.rs +++ b/crates/aiken-lang/src/gen_uplc.rs @@ -956,7 +956,7 @@ impl<'a> CodeGenerator<'a> { } else if !props.remove_unused { AirTree::let_assignment(name, value, then) } else { - AirTree::no_op() + AirTree::no_op().hoist_over(then) } } Pattern::List { elements, tail, .. } => {