Fix scope stack offset cleanup in aarch64 compiler
This commit is contained in:
parent
51c78169b3
commit
89b6b09be5
1 changed files with 3 additions and 0 deletions
|
|
@ -935,7 +935,10 @@ namespace pslang::jit::aarch64
|
|||
void scope_cleanup()
|
||||
{
|
||||
if (scopes.back().stack_offset > 0)
|
||||
{
|
||||
builder.add_imm(31, 31, scopes.back().stack_offset);
|
||||
stack_offset -= scopes.back().stack_offset;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue