Handle more mono::Expr cases

This commit is contained in:
Richard Feldman 2020-03-09 19:46:28 -04:00
parent 9081b7f2d1
commit f556f195d3

View file

@ -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()
}
},
}
}