reject codegen of __thread variables as unimplemented, rdar://6775265
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68755 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp
index f082267..00eb8b4 100644
--- a/lib/CodeGen/CGDecl.cpp
+++ b/lib/CodeGen/CGDecl.cpp
@@ -63,6 +63,10 @@
if (D.getAttr<AsmLabelAttr>())
CGM.ErrorUnsupported(&D, "__asm__");
+ // We don't support __thread yet.
+ if (D.isThreadSpecified())
+ CGM.ErrorUnsupported(&D, "__thread variable", true);
+
switch (D.getStorageClass()) {
case VarDecl::Static:
return EmitStaticBlockVarDecl(D);