projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6e9816
)
varasm.c (contains_pointers_p): When examining a RECORD_TYPE, only look at the FIELD_...
author
Jason Merrill
<merrill@gnu.org>
Wed, 13 Apr 1994 19:27:49 +0000
(19:27 +0000)
committer
Jason Merrill
<merrill@gnu.org>
Wed, 13 Apr 1994 19:27:49 +0000
(19:27 +0000)
* varasm.c (contains_pointers_p): When examining a RECORD_TYPE,
only look at the FIELD_DECLs.
From-SVN: r7045
gcc/varasm.c
patch
|
blob
|
history
diff --git
a/gcc/varasm.c
b/gcc/varasm.c
index a09852acc93dec07caa1ab30ab32054cfa8473b3..c08f46e61ec4b57acfa2258cc0eda032e0e87c11 100644
(file)
--- a/
gcc/varasm.c
+++ b/
gcc/varasm.c
@@
-1341,7
+1341,8
@@
contains_pointers_p (type)
tree fields;
/* For a type that has fields, see if the fields have pointers. */
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 0;
}