Files
clang-p2996/clang/test/OpenMP/declare_target_constexpr_codegen.cpp
Joseph Huber 85feb9347f [OpenMP] Fix setting visibility on declare target variables
Summary:
A previous patch changed the logic to force external visibliity on
declare target variables. This is because they need to be exported in
the dynamic symbol table to be usable as the standard depicts. However,
the logic was always setting the visibility to `protected`, which would
override some symbols. For example, when calling `libc` functions for
CPU offloading. This patch changes the logic to only fire if the
variable has hidden visibliity to start with.
2023-10-09 07:56:43 -05:00

1.5 KiB