mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +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 => {
|
LocalKind::Variable => {
|
||||||
if self.stack_frame_pointer.is_none() {
|
if self.stack_frame_pointer.is_none() {
|
||||||
self.stack_frame_pointer = Some(next_local_id);
|
self.stack_frame_pointer = Some(next_local_id);
|
||||||
|
self.locals.push(Local::new(1, PTR_TYPE));
|
||||||
}
|
}
|
||||||
|
|
||||||
let offset =
|
let offset =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue