diff options
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index c50d8b8a973..1a9e50a997b 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -15344,7 +15344,7 @@ reference_to_unused (tree * tp, int * walk_subtrees, /* ??? The C++ FE emits debug information for using decls, so putting gcc_unreachable here falls over. See PR31899. For now be conservative. */ - else if (!cgraph_global_info_ready + else if (!symtab->global_info_ready && (TREE_CODE (*tp) == VAR_DECL || TREE_CODE (*tp) == FUNCTION_DECL)) return *tp; else if (TREE_CODE (*tp) == VAR_DECL) |