Skip to content

Commit 3a90558

Browse files
committed
Fix type_kind implementation
1 parent 7aaa87b commit 3a90558

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/type_.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ impl<'gcc, 'tcx> BaseTypeMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
130130
else if typ.dyncast_vector().is_some() {
131131
TypeKind::Vector
132132
}
133+
else if typ.is_compatible_with(self.float_type) {
134+
TypeKind::Float
135+
}
136+
else if typ.is_compatible_with(self.double_type) {
137+
TypeKind::Double
138+
}
133139
else {
134140
// TODO(antoyo): support other types.
135141
TypeKind::Void

0 commit comments

Comments
 (0)