stub out Tag layout

This commit is contained in:
Folkert 2020-03-15 00:56:35 +01:00
parent 6088a22cb6
commit 5926ac2f01
3 changed files with 23 additions and 16 deletions

View file

@ -10,7 +10,7 @@ pub fn type_from_layout(cfg: TargetFrontendConfig, layout: &Layout<'_>) -> Type
use roc_mono::layout::Layout::*;
match layout {
Pointer(_) | FunctionPointer(_, _) | Struct(_) => cfg.pointer_type(),
Pointer(_) | FunctionPointer(_, _) | Struct(_) | Tag(_) => cfg.pointer_type(),
Builtin(builtin) => match builtin {
Int64 => types::I64,
Float64 => types::F64,

View file

@ -56,6 +56,9 @@ pub fn basic_type_from_layout<'ctx>(
Struct(_fields) => {
panic!("TODO layout_to_basic_type for Struct");
}
Tag(_fields) => {
panic!("TODO layout_to_basic_type for Tag");
}
Pointer(_layout) => {
panic!("TODO layout_to_basic_type for Pointer");
}