]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree.c
poly_int: GET_MODE_SIZE
[thirdparty/gcc.git] / gcc / tree.c
index d2631294662f98f1201d1fe3e3f458675760fdad..92376d179ac4cc147df768995f5738f159bbae34 100644 (file)
@@ -10570,9 +10570,9 @@ build_same_sized_truth_vector_type (tree vectype)
   if (VECTOR_BOOLEAN_TYPE_P (vectype))
     return vectype;
 
-  unsigned HOST_WIDE_INT size = GET_MODE_SIZE (TYPE_MODE (vectype));
+  poly_uint64 size = GET_MODE_SIZE (TYPE_MODE (vectype));
 
-  if (!size)
+  if (known_eq (size, 0U))
     size = tree_to_uhwi (TYPE_SIZE_UNIT (vectype));
 
   return build_truth_vector_type (TYPE_VECTOR_SUBPARTS (vectype), size);