diff options
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 868088f..09373dd 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -2711,7 +2711,10 @@ c_common_get_alias_set (tree t) NULL); slot = htab_find_slot (type_hash_table, t, INSERT); if (*slot != NULL) - return TYPE_ALIAS_SET ((tree)*slot); + { + TYPE_ALIAS_SET (t) = TYPE_ALIAS_SET ((tree)*slot); + return TYPE_ALIAS_SET ((tree)*slot); + } else /* Our caller will assign and record (in t) a new alias set; all we need to do is remember t in the hash table. */ |