remove single element record

This commit is contained in:
Folkert 2021-06-21 23:02:09 +02:00
parent 6744e009ac
commit 368d45fb01
5 changed files with 6 additions and 29 deletions

View file

@ -390,10 +390,10 @@ impl<'a> LambdaSet<'a> {
use crate::ir::Wrapped;
match self.representation {
Layout::Struct(fields) if fields.len() == 1 => Wrapped::SingleElementRecord,
Layout::Struct(fields) if fields.len() == 1 => unreachable!(),
Layout::Struct(_) => Wrapped::RecordOrSingleTagUnion,
Layout::Union(_) => unreachable!(),
_ => Wrapped::SingleElementRecord,
_ => unreachable!(),
}
}