d: Set COMDAT and visibility of thunks only if they are public.
commite22b7ae15b09aef1ec05dec6e24580d0063e9ab1
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 26 Jul 2021 17:04:24 +0000 (26 19:04 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Fri, 30 Jul 2021 10:51:36 +0000 (30 12:51 +0200)
treef8d9d0f1038f3272fc41fd26dc0f3b1660cf91c1
parent99d6d3d92f24c249314e0509f1ffa68f8450495e
d: Set COMDAT and visibility of thunks only if they are public.

It is not expected to have a member function that can be non-public, but
this guards against any internal errors that might occur should that
ever change in the front-end.

gcc/d/ChangeLog:

* decl.cc (make_thunk): Set COMDAT and visibility of thunks only if
they are public.
gcc/d/decl.cc