diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-12 22:46:28 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-12 22:46:28 +0000 |
commit | b4a9e86877be2e646b7266f23a5e39aced9dae34 (patch) | |
tree | cb5a5e35e16d75aa08521b626f95edfd862457cb /clang/lib/Parse/Parser.cpp | |
parent | 8ed2892c1c9a618851945a1fce30808d1a59f812 (diff) | |
download | bcm5719-llvm-b4a9e86877be2e646b7266f23a5e39aced9dae34.tar.gz bcm5719-llvm-b4a9e86877be2e646b7266f23a5e39aced9dae34.zip |
Parsing support for thread_local and _Thread_local. We give them the same
semantics as __thread for now.
llvm-svn: 179424
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r-- | clang/lib/Parse/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 1ebba3e67a8..d819644cb80 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -1141,8 +1141,8 @@ void Parser::ParseKNRParamDeclarations(Declarator &D) { diag::err_invalid_storage_class_in_func_decl); DS.ClearStorageClassSpecs(); } - if (DS.isThreadSpecified()) { - Diag(DS.getThreadSpecLoc(), + if (DS.getThreadStorageClassSpec() != DeclSpec::TSCS_unspecified) { + Diag(DS.getThreadStorageClassSpecLoc(), diag::err_invalid_storage_class_in_func_decl); DS.ClearStorageClassSpecs(); } |