aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index e8e3f6c..fb7919a 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -888,6 +888,7 @@ get_alias_set (tree t)
}
/* If this is a type with a known alias set, return it. */
+ gcc_checking_assert (t == TYPE_MAIN_VARIANT (t));
if (TYPE_ALIAS_SET_KNOWN_P (t))
return TYPE_ALIAS_SET (t);
@@ -1030,6 +1031,7 @@ get_alias_set (tree t)
We can not call get_alias_set (p) here as that would trigger
infinite recursion when p == t. In other cases it would just
trigger unnecesary legwork of rebuilding the pointer again. */
+ gcc_checking_assert (p == TYPE_MAIN_VARIANT (p));
if (TYPE_ALIAS_SET_KNOWN_P (p))
set = TYPE_ALIAS_SET (p);
else