diff options
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r-- | gcc/gimple-fold.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 3c03c01330d..f4fe65bd6c0 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -98,7 +98,7 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl) { /* Before we start optimizing unreachable code we can be sure all static objects are defined. */ - if (cgraph_function_flags_ready) + if (symtab->function_flags_ready) return true; snode = symtab_node::get (decl); if (!snode || !snode->definition) @@ -143,7 +143,7 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl) units where they are used and when the other unit was compiled with LTO it is possible that vtable was kept public while the function itself was privatized. */ - if (!cgraph_function_flags_ready) + if (!symtab->function_flags_ready) return true; snode = symtab_node::get (decl); |