]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/method.c
cp-tree.h (DECL_MAYBE_IN_CHARGE_CDTOR_P): New.
[thirdparty/gcc.git] / gcc / cp / method.c
index e9add9addc41015cebe620f2c900b135c0a7df9d..ef0df7eb8d9472a846c381f1f18a5f2f613af36f 100644 (file)
@@ -2422,8 +2422,7 @@ lazily_declare_fn (special_function_kind sfk, tree type)
   fixup_type_variants (type);
 
   maybe_add_class_template_decl_list (type, fn, /*friend_p=*/0);
-  if (DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P (fn)
-      || DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P (fn))
+  if (DECL_MAYBE_IN_CHARGE_CDTOR_P (fn))
     /* Create appropriate clones.  */
     clone_function_decl (fn, /*update_methods=*/true);