diff options
author | Geoff Keating <geoffk@cygnus.com> | 2000-06-04 05:51:12 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-06-04 05:51:12 +0000 |
commit | b16a49a14c74b890a2879631b1be8190dccfa288 (patch) | |
tree | 08b8ad144c646db40244fdb3b54afb53cf8d8fc0 /gcc/alias.c | |
parent | 089f6dc34804198e432eae0e9650dc573971a1cb (diff) | |
download | gcc-b16a49a14c74b890a2879631b1be8190dccfa288.zip gcc-b16a49a14c74b890a2879631b1be8190dccfa288.tar.gz gcc-b16a49a14c74b890a2879631b1be8190dccfa288.tar.bz2 |
alias.c (record_component_aliases): Don't inspect DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
* alias.c (record_component_aliases): Don't inspect
DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
From-SVN: r34389
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 1306c3f..dee0cfc 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -536,7 +536,7 @@ record_component_aliases (type) case UNION_TYPE: case QUAL_UNION_TYPE: for (field = TYPE_FIELDS (type); field != 0; field = TREE_CHAIN (field)) - if (! DECL_NONADDRESSABLE_P (field)) + if (TREE_CODE (field) == FIELD_DECL && ! DECL_NONADDRESSABLE_P (field)) record_alias_subset (superset, get_alias_set (TREE_TYPE (field))); break; |