[TLS on Darwin] treat all Darwin platforms in the same way.

rdar://problem/9001553

llvm-svn: 252820
This commit is contained in:
Manman Ren
2015-11-11 23:08:18 +00:00
parent 2b90a64e31
commit f93fff27f0
2 changed files with 4 additions and 4 deletions

View File

@@ -2323,7 +2323,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) {
// variable. This is to preserve the ability to change the implementation
// behind the scenes.
if (!D->isStaticLocal() && D->getTLSKind() == VarDecl::TLS_Dynamic &&
Context.getTargetInfo().getTriple().isMacOSX() &&
Context.getTargetInfo().getTriple().isOSDarwin() &&
!llvm::GlobalVariable::isLinkOnceLinkage(Linkage) &&
!llvm::GlobalVariable::isWeakLinkage(Linkage))
Linkage = llvm::GlobalValue::InternalLinkage;