mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Handle more mono::Expr cases
This commit is contained in:
parent
9081b7f2d1
commit
f556f195d3
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ pub fn type_from_layout(cfg: TargetFrontendConfig, layout: &Layout<'_>) -> Type
|
|||
Builtin(builtin) => match builtin {
|
||||
Int64 => types::I64,
|
||||
Float64 => types::F64,
|
||||
Str | Map(_, _) | Set(_) | List(_) => cfg.pointer_type(),
|
||||
Str | EmptyStr | Map(_, _) | EmptyMap | Set(_) | EmptySet | List(_) | EmptyList => {
|
||||
cfg.pointer_type()
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue