mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Initialize stack pointer when it doesn't exist
I'm not sure this is right, but we have to do it somewhere.. and here seems reasonable?
This commit is contained in:
parent
326bfe9aa3
commit
4631ff96f5
1 changed files with 4 additions and 0 deletions
|
@ -519,6 +519,10 @@ impl<'a> Storage<'a> {
|
|||
alignment_bytes,
|
||||
..
|
||||
} => {
|
||||
if self.stack_frame_pointer.is_none() {
|
||||
self.stack_frame_pointer = Some(self.get_next_local_id());
|
||||
}
|
||||
|
||||
let (to_ptr, to_offset) = location.local_and_offset(self.stack_frame_pointer);
|
||||
copy_memory(
|
||||
code_builder,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue