diff options
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 6f36aa1..0e70bb5 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7827,7 +7827,7 @@ start_cleanup_fn (void) static void end_cleanup_fn (void) { - expand_or_defer_fn (finish_function (0)); + expand_or_defer_fn (finish_function (/*inline_p=*/false)); pop_from_top_level (); } @@ -15459,20 +15459,16 @@ maybe_save_function_definition (tree fun) /* Finish up a function declaration and compile that function all the way to assembler language output. The free the storage - for the function definition. - - FLAGS is a bitwise or of the following values: - 2 - INCLASS_INLINE - We just finished processing the body of an in-class inline - function definition. (This processing will have taken place - after the class definition is complete.) */ + for the function definition. INLINE_P is TRUE if we just + finished processing the body of an in-class inline function + definition. (This processing will have taken place after the + class definition is complete.) */ tree -finish_function (int flags) +finish_function (bool inline_p) { tree fndecl = current_function_decl; tree fntype, ctype = NULL_TREE; - int inclass_inline = (flags & 2) != 0; /* When we get some parse errors, we can end up without a current_function_decl, so cope. */ @@ -15732,7 +15728,7 @@ finish_function (int flags) bindings for the template parameters that we added in maybe_begin_member_template_processing when start_function was called. */ - if (inclass_inline) + if (inline_p) maybe_end_member_template_processing (); /* Leave the scope of the class. */ |