diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-03-30 22:36:29 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-03-30 22:36:29 +0100 |
| commit | 494205e2e4a57899b2c837efbe7b346ea0781d43 (patch) | |
| tree | 534e920dbac6c08af2a0a9d10ce56ff6b2001847 | |
| parent | 3af76a85328aa0807e47ceb77dfc7f881c82fb61 (diff) | |
Set signature for function being built
| -rw-r--r-- | patio-to-cranelift/src/context.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/patio-to-cranelift/src/context.rs b/patio-to-cranelift/src/context.rs index 9f1cf05b..38aedf60 100644 --- a/patio-to-cranelift/src/context.rs +++ b/patio-to-cranelift/src/context.rs @@ -74,6 +74,7 @@ impl CompilerContext { // TODO: reuse function builder context let mut func_builder_context = cranelift::prelude::FunctionBuilderContext::new(); let mut function_builder = cranelift::prelude::FunctionBuilder::new(&mut self.codegen_context.func, &mut func_builder_context); + function_builder.func.signature = signature; let entry_block = function_builder.create_block(); function_builder.append_block_params_for_function_params(entry_block); |
