add reuse info to normal Tag ir constructor

This commit is contained in:
Folkert 2023-06-28 21:26:19 +02:00
parent c4b0a2ec29
commit 463f739c06
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
8 changed files with 94 additions and 16 deletions

View file

@ -134,7 +134,10 @@ fn insert_reset_reuse_operations_stmt<'a, 'i>(
tag_layout,
tag_id,
arguments,
reuse,
} => {
debug_assert!(reuse.is_none());
// The value of the tag is currently only used in the case of nullable recursive unions.
// But for completeness we add every kind of union to the layout_tags.
environment.add_symbol_tag(*binding, *tag_id);