[PATCH] D117362: [OpenMP] Remove hidden visibility for declare target variables

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 19 07:13:21 PST 2022


JonChesterfield added inline comments.


================
Comment at: clang/lib/AST/Decl.cpp:1080
+  if (const VarDecl *VD = dyn_cast<VarDecl>(D))
+    if (OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(VD))
+      return LinkageInfo(LV.getLinkage(), DefaultVisibility, false);
----------------
Possibly address space dependent. I'm not confident shared or thread local variables will behave sensibly if annotated with elf visibility flags.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117362/new/

https://reviews.llvm.org/D117362



More information about the cfe-commits mailing list