================
@@ -2446,7 +2446,9 @@ void 
CodeGenModule::setDLLImportDLLExport(llvm::GlobalValue *GV,
 
 void CodeGenModule::setDLLImportDLLExport(llvm::GlobalValue *GV,
                                           const NamedDecl *D) const {
-  if (D && D->isExternallyVisible()) {
+  // Local-linkage globals (e.g. `.inline` builtin clones) cannot carry a DLL
+  // storage class.
+  if (D && D->isExternallyVisible() && !GV->hasLocalLinkage()) {
----------------
vitalybuka wrote:

Actually I spotted this corner case triggering assert, but I am not sure what I 
am doing here. :)

https://github.com/llvm/llvm-project/pull/234415
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to