mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
store closure data for bool/byte again
This commit is contained in:
parent
7416cc4e81
commit
77911cb68a
3 changed files with 43 additions and 31 deletions
|
@ -618,7 +618,9 @@ impl<'a> LambdaSet<'a> {
|
|||
use UnionVariant::*;
|
||||
match variant {
|
||||
Never => Layout::Union(UnionLayout::NonRecursive(&[])),
|
||||
Unit | UnitWithArguments | BoolUnion { .. } | ByteUnion(_) => {
|
||||
BoolUnion { .. } => Layout::Builtin(Builtin::Int1),
|
||||
ByteUnion { .. } => Layout::Builtin(Builtin::Int8),
|
||||
Unit | UnitWithArguments => {
|
||||
// no useful information to store
|
||||
Layout::Struct(&[])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue