Skip to content

Commit 9c3a123

Browse files
committed
Fix type_kind implementation
1 parent 7aaa87b commit 9c3a123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/type_.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ impl<'gcc, 'tcx> BaseTypeMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
121121
if self.is_int_type_or_bool(typ) {
122122
TypeKind::Integer
123123
}
124-
else if typ == self.float_type {
124+
else if typ.is_compatible_with(self.float_type) {
125125
TypeKind::Float
126126
}
127-
else if typ == self.double_type {
127+
else if typ.is_compatible_with(self.double_type) {
128128
TypeKind::Double
129129
}
130130
else if typ.dyncast_vector().is_some() {

0 commit comments

Comments
 (0)