]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++/modules: Use decl_linkage in maybe_record_mergeable_decl
authorNathaniel Shead <nathanieloshead@gmail.com>
Tue, 3 Sep 2024 16:42:58 +0000 (02:42 +1000)
committerNathaniel Shead <nathanieloshead@gmail.com>
Fri, 27 Sep 2024 03:49:23 +0000 (13:49 +1000)
commitad08ef098a8c8bb9c148d0a32e91456fdf58ffc1
treee5b211b5bcdbbbe62c9ed9969fc02896d8c53022
parentaf4471cb422a867f1877c7c08bb63fa75a8888fe
c++/modules: Use decl_linkage in maybe_record_mergeable_decl

This avoids any possible inconsistencies (current or future) about
whether a declaration is internal or not.

gcc/cp/ChangeLog:

* name-lookup.cc (maybe_record_mergeable_decl): Use decl_linkage
instead of ad-hoc checks.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
gcc/cp/name-lookup.cc