Fix restoration of stack address after invoking function with struct-typed arguments #333

Merged
sb10q merged 2 commits from issue-233 into master 2023-10-06 11:35:27 +08:00

2 Commits

Author SHA1 Message Date
David Mak c7de22287e core: Fix restoration of stack address
All allocas for temporary objects are now placed in the beginning of the
function. Allocas for on-temporary objects are not modified because
these variables may appear in a loop and thus must be uniquely
represented.
2023-10-06 11:34:23 +08:00
David Mak 1a54aaa1c0 core: Restore debug location when generating allocas
Debug location is lost when moving the builder cursor.
2023-10-06 11:11:50 +08:00