forked from OSchip/llvm-project
[OPENMP] Fix for threadprivate construct instantiatiation.
llvm-svn: 203225
This commit is contained in:
parent
fefeecc7b0
commit
d3db6acf7e
|
@ -2325,6 +2325,9 @@ Decl *TemplateDeclInstantiator::VisitOMPThreadPrivateDecl(
|
|||
OMPThreadPrivateDecl *TD =
|
||||
SemaRef.CheckOMPThreadPrivateDecl(D->getLocation(), Vars);
|
||||
|
||||
TD->setAccess(AS_public);
|
||||
Owner->addDecl(TD);
|
||||
|
||||
return TD;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue