Fix type_kind implementation

This commit is contained in:
bjorn3 2022-01-30 13:38:27 +01:00
parent 7aaa87bcd2
commit 9c3a1235c5

View File

@ -121,10 +121,10 @@ impl<'gcc, 'tcx> BaseTypeMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
if self.is_int_type_or_bool(typ) {
TypeKind::Integer
}
else if typ == self.float_type {
else if typ.is_compatible_with(self.float_type) {
TypeKind::Float
}
else if typ == self.double_type {
else if typ.is_compatible_with(self.double_type) {
TypeKind::Double
}
else if typ.dyncast_vector().is_some() {