Fix bug: Forgot to generate a local for the stack frame pointer

This commit is contained in:
Brian Carroll 2021-10-09 18:14:52 +01:00
parent 476c1664ec
commit d166f65a31

View file

@ -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 =