Skip to content

Commit 9274c63

Browse files
committed
Change Void to unreachable
1 parent 73db249 commit 9274c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/type_.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ impl<'gcc, 'tcx> BaseTypeMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
206206
4 => TypeKind::Float,
207207
8 => TypeKind::Double,
208208
16 => TypeKind::FP128,
209-
_ => TypeKind::Void,
209+
size => unreachable!("Floating-point type of size {}", size),
210210
}
211211
} else if typ == self.type_void() {
212212
TypeKind::Void

0 commit comments

Comments
 (0)