diff options
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index f0822675f8..00eb8b477b 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -63,6 +63,10 @@ void CodeGenFunction::EmitBlockVarDecl(const VarDecl &D) { 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); |