Commit ce49ea8a by Jason Merrill

varasm.c (contains_pointers_p): When examining a RECORD_TYPE, only look at the FIELD_DECLs.

        * varasm.c (contains_pointers_p): When examining a RECORD_TYPE,
        only look at the FIELD_DECLs.

From-SVN: r7045
parent a6e98168
...@@ -1341,7 +1341,8 @@ contains_pointers_p (type) ...@@ -1341,7 +1341,8 @@ contains_pointers_p (type)
tree fields; tree fields;
/* For a type that has fields, see if the fields have pointers. */ /* For a type that has fields, see if the fields have pointers. */
for (fields = TYPE_FIELDS (type); fields; fields = TREE_CHAIN (fields)) for (fields = TYPE_FIELDS (type); fields; fields = TREE_CHAIN (fields))
if (contains_pointers_p (TREE_TYPE (fields))) if (TREE_CODE (fields) == FIELD_DECL
&& contains_pointers_p (TREE_TYPE (fields)))
return 1; return 1;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment