diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-04-06 11:08:50 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-04-06 11:08:50 +0100 |
| commit | 0b8637f445a6e3483dabe091742012f528457fe9 (patch) | |
| tree | 48037bab946dc99ed62fd028bbff909fbf1d63ef /patio-to-cranelift/src/codegen/context.rs | |
| parent | 5b40de4b578c136e5e3d567ada603540cb574ba2 (diff) | |
Set up params properly in patio-to-cranelift
Diffstat (limited to 'patio-to-cranelift/src/codegen/context.rs')
| -rw-r--r-- | patio-to-cranelift/src/codegen/context.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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( |
