summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-01-31 19:28:59 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-01-31 19:28:59 +0000
commit9e435806aaf5bd7e974d317ef247f200200ad686 (patch)
tree950414edc74ebec2c62ac1b5fd10e799f0204b5b /lib/CodeGen/CGDecl.cpp
parent06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (diff)
Notes
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r--lib/CodeGen/CGDecl.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp
index 766d2aa6ffb83..15a1a7fb5f127 100644
--- a/lib/CodeGen/CGDecl.cpp
+++ b/lib/CodeGen/CGDecl.cpp
@@ -206,9 +206,6 @@ llvm::Constant *CodeGenModule::getOrCreateStaticVarDecl(
GV->setAlignment(getContext().getDeclAlign(&D).getQuantity());
setGlobalVisibility(GV, &D);
- if (supportsCOMDAT() && GV->isWeakForLinker())
- GV->setComdat(TheModule.getOrInsertComdat(GV->getName()));
-
if (D.getTLSKind())
setTLSMode(GV, D);