Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clang/lib/CodeGen/CodeGenModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,7 @@ void CodeGenModule::SetInternalFunctionAttributes(GlobalDecl GD,
}

static void setLinkageForGV(llvm::GlobalValue *GV, const NamedDecl *ND,
VersionTuple EnclosingVersion = VersionTuple()) {
VersionTuple EnclosingVersion) {
// Set linkage and visibility in case we never see a definition.
LinkageInfo LV = ND->getLinkageAndVisibility();
// Don't set internal linkage on declarations.
Expand Down Expand Up @@ -5003,7 +5003,7 @@ CodeGenModule::GetOrCreateLLVMGlobal(StringRef MangledName, llvm::Type *Ty,

GV->setAlignment(getContext().getDeclAlign(D).getAsAlign());

setLinkageForGV(GV, D);
setLinkageForGV(GV, D, Target.getPlatformMinVersion());

if (D->getTLSKind()) {
if (D->getTLSKind() == VarDecl::TLS_Dynamic)
Expand Down