mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Never use InternalLinkage for variables marked as "extern"
This commit is contained in:
@@ -250,6 +250,9 @@ LLGlobalValue::LinkageTypes DtoLinkage(Dsymbol* sym)
|
||||
// template
|
||||
if (needsTemplateLinkage(sym))
|
||||
return templateLinkage;
|
||||
// never use InternalLinkage for variables marked as "extern"
|
||||
if (vd->storage_class & STCextern)
|
||||
return llvm::GlobalValue::ExternalLinkage;
|
||||
}
|
||||
// function
|
||||
else if (FuncDeclaration* fdecl = sym->isFuncDeclaration())
|
||||
|
||||
Reference in New Issue
Block a user