mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Fix bug: Forgot to generate a local for the stack frame pointer
This commit is contained in:
parent
476c1664ec
commit
d166f65a31
1 changed files with 1 additions and 0 deletions
|
@ -217,6 +217,7 @@ impl<'a> WasmBackend<'a> {
|
|||
LocalKind::Variable => {
|
||||
if self.stack_frame_pointer.is_none() {
|
||||
self.stack_frame_pointer = Some(next_local_id);
|
||||
self.locals.push(Local::new(1, PTR_TYPE));
|
||||
}
|
||||
|
||||
let offset =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue