aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 50923ab..b4ea1a1 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -2940,7 +2940,7 @@ expand_or_defer_fn (tree fn)
import_export_decl (fn);
/* Expand or defer, at the whim of the compilation unit manager. */
- cgraph_finalize_function (fn);
+ cgraph_finalize_function (fn, function_depth > 1);
}
/* Helper function for walk_tree, used by finish_function to override all