diff options
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 4956b41..dcd81cd 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2939,8 +2939,12 @@ expand_or_defer_fn (tree fn) if (DECL_DECLARED_INLINE_P (fn)) import_export_decl (fn); + function_depth++; + /* Expand or defer, at the whim of the compilation unit manager. */ cgraph_finalize_function (fn, function_depth > 1); + + function_depth--; } /* Helper function for walk_tree, used by finish_function to override all |