JonChesterfield added a comment.

If I'm following correctly, this broke the amdgpu buildbot and it has been 
moved into staging as a workaround. I haven't debugged what breaks but 
'DefaultVisibility' is relatively likely to behave differently on cuda vs hsa 
systems so that's my first guess.



================
Comment at: clang/lib/AST/Decl.cpp:792
+    if (OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(Var))
+      return LinkageInfo::external();
+
----------------
Would this change static variables to non-static and thus introduce multiple 
definition errors? Not immediately obvious to me that the variables have to be 
directly visible to other translation units


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117362

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to