implement layout for Tag

This commit is contained in:
Folkert 2020-03-16 13:09:01 +01:00
parent 8c7124aba6
commit d875f8bfce
5 changed files with 28 additions and 11 deletions

View file

@ -68,7 +68,7 @@ pub fn basic_type_from_layout<'ctx>(
.struct_type(field_types.into_bump_slice(), false)
.as_basic_type_enum()
}
Tag(_fields) => {
Union(_fields) => {
panic!("TODO layout_to_basic_type for Tag");
}
Pointer(_layout) => {