Change Void to unreachable

This commit is contained in:
Antoni Boucher 2024-06-25 09:00:36 -04:00
parent 73db24970f
commit 9274c63df3

View File

@ -206,7 +206,7 @@ fn type_kind(&self, typ: Type<'gcc>) -> TypeKind {
4 => TypeKind::Float,
8 => TypeKind::Double,
16 => TypeKind::FP128,
_ => TypeKind::Void,
size => unreachable!("Floating-point type of size {}", size),
}
} else if typ == self.type_void() {
TypeKind::Void