Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use builder0 to allocate properly #2771

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

advikkabra
Copy link
Collaborator

Previously, in some places, LLVM allocations were made wherever needed, instead of at the start of the function as required. This led to repeated variable allocations, causing a stack overflow. This uses builder0 to allocate at the start of the function.

@advikkabra advikkabra merged commit 759df0e into lcompilers:main Jul 12, 2024
15 checks passed
@advikkabra advikkabra deleted the alloca-start branch July 12, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants