]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_gcc/src/type_.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / compiler / rustc_codegen_gcc / src / type_.rs
index 3545e1b628105870b333bd2030dbf30ad79c4ed5..28e2adc492bbeb49f86be0c3037610c3d0fd53a2 100644 (file)
@@ -122,7 +122,7 @@ fn type_kind(&self, typ: Type<'gcc>) -> TypeKind {
         if typ.is_integral() {
             TypeKind::Integer
         }
-        else if typ.is_vector().is_some() {
+        else if typ.dyncast_vector().is_some() {
             TypeKind::Vector
         }
         else {
@@ -141,10 +141,10 @@ fn type_ptr_to_ext(&self, ty: Type<'gcc>, _address_space: AddressSpace) -> Type<
     }
 
     fn element_type(&self, ty: Type<'gcc>) -> Type<'gcc> {
-        if let Some(typ) = ty.is_array() {
+        if let Some(typ) = ty.dyncast_array() {
             typ
         }
-        else if let Some(vector_type) = ty.is_vector() {
+        else if let Some(vector_type) = ty.dyncast_vector() {
             vector_type.get_element_type()
         }
         else if let Some(typ) = ty.get_pointee() {