From 0b8637f445a6e3483dabe091742012f528457fe9 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 6 Apr 2026 11:08:50 +0100 Subject: Set up params properly in patio-to-cranelift --- patio-to-cranelift/src/codegen/context.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'patio-to-cranelift/src/codegen/context.rs') diff --git a/patio-to-cranelift/src/codegen/context.rs b/patio-to-cranelift/src/codegen/context.rs index cf6bed84..ddd50492 100644 --- a/patio-to-cranelift/src/codegen/context.rs +++ b/patio-to-cranelift/src/codegen/context.rs @@ -217,8 +217,11 @@ impl<'a> CompilerFunctionContext<'a> { } pub(crate) fn seal_current_block(&mut self) { - self.function_builder - .seal_block(self.function_builder.current_block().unwrap()); + self.function_builder.seal_block(self.current_block()); + } + + pub(crate) fn current_block(&self) -> cranelift_codegen::ir::Block { + self.function_builder.current_block().unwrap() } pub(crate) fn block_call( -- cgit v1.2.3