diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-10 00:35:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-10 00:35:59 +0000 |
commit | 5286e774eec4028a0b634f53df5dd1590a38a3b4 (patch) | |
tree | a004484244f26951142f334f6007748a740889af /clang/lib/CodeGen/CGDecl.cpp | |
parent | 428f71623ba3352b3dd3da09deb19476b7afd971 (diff) | |
download | bcm5719-llvm-5286e774eec4028a0b634f53df5dd1590a38a3b4.tar.gz bcm5719-llvm-5286e774eec4028a0b634f53df5dd1590a38a3b4.zip |
reject codegen of __thread variables as unimplemented, rdar://6775265
llvm-svn: 68755
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index f0822675f87..00eb8b477ba 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/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); |