aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-10 13:12:57 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-10 13:12:57 +0000
commitd5a2f455e69040cec63269e12307c4c4699850d5 (patch)
tree5a3ad15efba35f76f3ecbb3841eb39bdd7ad713f /gcc/cp/lambda.c
parenta529e0a697f7cbc16f4d8ea9c2dad9b4b761d96c (diff)
downloadgcc-d5a2f455e69040cec63269e12307c4c4699850d5.zip
gcc-d5a2f455e69040cec63269e12307c4c4699850d5.tar.gz
gcc-d5a2f455e69040cec63269e12307c4c4699850d5.tar.bz2
cp-tree.h (add_method, [...]): Change last arg to bool.
gcc/cp/ * cp-tree.h (add_method, clone_function_decl): Change last arg to bool. * class.c (add_method): Change third arg to bool. Adjust. (one_inheriting_sig, one_inherited_ctor): Adjust. (clone_function_decl): Change 2nd arg to bool. Adjust. (clone_constructors_and_destructors): Adjust. * lambda.c (maybe_add_lambda_conv_op): Adjust. * method.c (lazily_declare_fn): Adjust. * pt.c (tsubst_decl, instantiate_template_1): Adjust. * semantics.c (finish_member_declaration): Adjust. libcc1/ * libcp1plugin.cc (plugin_build_decl): Adjust add_method call. From-SVN: r247834
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r--gcc/cp/lambda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index 5061597..66b5312 100644
--- a/gcc/cp/lambda.c
+++ b/gcc/cp/lambda.c
@@ -1110,7 +1110,7 @@ maybe_add_lambda_conv_op (tree type)
if (generic_lambda_p)
fn = add_inherited_template_parms (fn, DECL_TI_TEMPLATE (callop));
- add_method (type, fn, NULL_TREE);
+ add_method (type, fn, false);
/* Generic thunk code fails for varargs; we'll complain in mark_used if
the conversion op is used. */
@@ -1156,7 +1156,7 @@ maybe_add_lambda_conv_op (tree type)
cplus_decl_attributes (&fn, attrs, 0);
}
- add_method (type, fn, NULL_TREE);
+ add_method (type, fn, false);
if (nested)
push_function_context ();