Fix type_kind implementation
This commit is contained in:
parent
7aaa87bcd2
commit
9c3a1235c5
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue