Skip to content

Add adt_def to struct and enum metadata#64

Merged
jberthold merged 2 commits intomasterfrom
add-adt_def
Apr 4, 2025
Merged

Add adt_def to struct and enum metadata#64
jberthold merged 2 commits intomasterfrom
add-adt_def

Conversation

@jberthold
Copy link
Member

@jberthold jberthold commented Apr 4, 2025

These adt_def of struct and enum metadata are required for a reverse mapping adt_def -> Ty in the semantics.
The AggregateKind only carries the adt_def but we have to look up the discriminant information (and potentially other metadata later) from a Ty key.

Note that the adt_def is unstable, it changes with every compiler run, so we delete the field in the golden tests.

@jberthold jberthold requested a review from dkcumming April 4, 2025 05:02
@jberthold jberthold marked this pull request as ready for review April 4, 2025 05:02
@jberthold jberthold merged commit b7a772e into master Apr 4, 2025
2 checks passed
@jberthold jberthold deleted the add-adt_def branch April 4, 2025 05:14
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