[OPENMP] Fix for threadprivate construct instantiatiation.

llvm-svn: 203225
This commit is contained in:
Alexey Bataev 2014-03-07 09:46:29 +00:00
parent fefeecc7b0
commit d3db6acf7e
1 changed files with 3 additions and 0 deletions

View File

@ -2325,6 +2325,9 @@ Decl *TemplateDeclInstantiator::VisitOMPThreadPrivateDecl(
OMPThreadPrivateDecl *TD =
SemaRef.CheckOMPThreadPrivateDecl(D->getLocation(), Vars);
TD->setAccess(AS_public);
Owner->addDecl(TD);
return TD;
}