aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 2e1b9a3..d923ac8 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5988,8 +5988,7 @@ type_hash_eq (const void *va, const void *vb)
/* Be careful about comparing arrays before and after the element type
has been completed; don't compare TYPE_ALIGN unless both types are
complete. */
- if (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P (a->type)
- && COMPLETE_OR_UNBOUND_ARRAY_TYPE_P (b->type)
+ if (COMPLETE_TYPE_P (a->type) && COMPLETE_TYPE_P (b->type)
&& (TYPE_ALIGN (a->type) != TYPE_ALIGN (b->type)
|| TYPE_MODE (a->type) != TYPE_MODE (b->type)))
return 0;