llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[clang codegen][regression] VTT definitions missing dso_local/hidden/etc markings

Open bd1976bris opened this issue 3 years ago • 2 comments

https://reviews.llvm.org/D128482 has regressed certain cases of VTT emission which are no longer marked.

For example, in the following case:

class C {};
class D : virtual C {};
D d;

VTT for D is no longer hidden when compiled with -fvisibility=hidden.

Previously, this would have been emitted as hidden, see: https://godbolt.org/z/s4rPffsrK.

bd1976bris avatar Nov 15 '23 23:11 bd1976bris

@llvm/issue-subscribers-clang-codegen

Author: bd1976bris (bd1976bris)

https://reviews.llvm.org/D128482 has regressed certain cases of VTT emission which are no longer marked.

For example, in the following case:

class C {};
class D : virtual C {};
D d;

@VTT for D is no longer hidden when compiled with -fvisibility=hidden.

Previously, this would have been emitted as hidden, see: https://godbolt.org/z/s4rPffsrK.

llvmbot avatar Nov 15 '23 23:11 llvmbot

Potential fix: https://github.com/llvm/llvm-project/pull/72452

bd1976bris avatar Nov 15 '23 23:11 bd1976bris