summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-04-12 22:46:28 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-04-12 22:46:28 +0000
commitb4a9e86877be2e646b7266f23a5e39aced9dae34 (patch)
treecb5a5e35e16d75aa08521b626f95edfd862457cb /clang/lib/Parse/Parser.cpp
parent8ed2892c1c9a618851945a1fce30808d1a59f812 (diff)
downloadbcm5719-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.cpp4
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();
}
OpenPOWER on IntegriCloud