Skip to content

Commit

Permalink
Change Void to unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Jun 25, 2024
1 parent 73db249 commit 9274c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/type_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl<'gcc, 'tcx> BaseTypeMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
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
Expand Down

0 comments on commit 9274c63

Please sign in to comment.