diff options
Diffstat (limited to 'gcc/d/decl.cc')
-rw-r--r-- | gcc/d/decl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/d/decl.cc b/gcc/d/decl.cc index 161a85a..1167462 100644 --- a/gcc/d/decl.cc +++ b/gcc/d/decl.cc @@ -53,6 +53,7 @@ along with GCC; see the file COPYING3. If not see #include "function.h" #include "debug.h" #include "tree-pretty-print.h" +#include "tree-nested.h" #include "d-tree.h" @@ -1280,8 +1281,8 @@ get_symbol_decl (Declaration *decl) all static chain passing is handled by the front-end. Do this even if we are not emitting the body. */ struct cgraph_node *node = cgraph_node::get_create (decl->csym); - if (node->origin) - node->unnest (); + if (nested_function_origin (node)) + unnest_function (node); } /* Mark compiler generated temporaries as artificial. */ |