Skip to content

v3: fix -autofree codegen - #28159

Draft
kestred wants to merge 2 commits into
vlang:masterfrom
kestred:fix/autofree-trivial-literal-ierror-destructor
Draft

v3: fix -autofree codegen#28159
kestred wants to merge 2 commits into
vlang:masterfrom
kestred:fix/autofree-trivial-literal-ierror-destructor

Conversation

@kestred

@kestred kestred commented Aug 22, 2026

Copy link
Copy Markdown

v -autofree emitted C that no compiler accepts: drop lists handed to the wrong block (naming variables not in scope), interface dispatch calling an unmangled symbol, destructors for functions dead-code elimination had removed, and no destructor at all for programs whose body is only literal prints.
Fixes the transform and cgen causes, roots the IError destructors markused was dropping, narrows destructor emission to live functions, and adds a program-shape matrix plus a macOS CI hello_world build so the class is covered.

@kestred
kestred force-pushed the fix/autofree-trivial-literal-ierror-destructor branch from b47c118 to 3866b78 Compare August 22, 2026 19:01
@kestred kestred changed the title v3: fix -autofree on literal-only programs v3: fix -autofree codegen Aug 22, 2026
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.

1 participant