diff options
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r-- | gcc/tree-dfa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index 467a678..37e15bf 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -770,9 +770,9 @@ get_ref_base_and_extent (tree exp, HOST_WIDE_INT *poffset, && maxsize != -1) { tree stype = TREE_TYPE (TREE_OPERAND (exp, 0)); - tree next = TREE_CHAIN (field); + tree next = DECL_CHAIN (field); while (next && TREE_CODE (next) != FIELD_DECL) - next = TREE_CHAIN (next); + next = DECL_CHAIN (next); if (!next || TREE_CODE (stype) != RECORD_TYPE) { |