From ce49ea8a38c9f3b283897ddf77953e7bd2048cd7 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 13 Apr 1994 19:27:49 +0000 Subject: [PATCH] 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 --- gcc/varasm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/varasm.c b/gcc/varasm.c index a09852acc93..c08f46e61ec 100644 --- 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; } -- 2.30.2