This commit is contained in:
Folkert 2023-06-18 14:21:48 +02:00
parent 4a9514d2c4
commit 0247237fe8
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
16 changed files with 625 additions and 163 deletions

View file

@ -429,6 +429,15 @@ impl<'a, 'r> Ctx<'a, 'r> {
} => self.with_sym_layout(structure, |ctx, _def_line, layout| {
ctx.check_union_at_index(structure, layout, union_layout, tag_id, index)
}),
&Expr::UnionFieldPtrAtIndex {
structure,
tag_id,
union_layout,
index,
} => self.with_sym_layout(structure, |ctx, _def_line, layout| {
// TODO: I suspect this will fail because the output layout has an extra Box layer?
ctx.check_union_at_index(structure, layout, union_layout, tag_id, index)
}),
Expr::Array { elem_layout, elems } => {
for elem in elems.iter() {
match elem {