Skip to content

fix disposing builder when not created #5131

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

Merged
merged 1 commit into from
May 7, 2025

Conversation

laytan
Copy link
Collaborator

@laytan laytan commented May 7, 2025

Fixes #5128

p->builder is created in lb_begin_procedure_body, but that isn't called if there is no body, and we were still calling dispose at that point.

Moved it into lb_end_procedure_body to match.

Fixes odin-lang#5128

p->builder is created in lb_begin_procedure_body, but that isn't called
if there is no body, and we were still calling dispose at that point.

Moved it into lb_end_procedure_body to match.
@gingerBill gingerBill merged commit 4a70908 into odin-lang:master May 7, 2025
7 checks passed
@laytan laytan deleted the fix-builder-dispose branch May 8, 2025 08:56
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.

Compiler crash when using -use-single-module with manual call to _startup_runtime()
2 participants