aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index d263129..92376d1 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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);