From: Alexey Bataev Date: Fri, 7 Mar 2014 09:46:29 +0000 (+0000) Subject: [OPENMP] Fix for threadprivate construct instantiatiation. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcd77d033b1a8a688001b8a87ccefc622fb09cc3;p=clang [OPENMP] Fix for threadprivate construct instantiatiation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203225 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index fe62ab466e..a912f34f20 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -2325,6 +2325,9 @@ Decl *TemplateDeclInstantiator::VisitOMPThreadPrivateDecl( OMPThreadPrivateDecl *TD = SemaRef.CheckOMPThreadPrivateDecl(D->getLocation(), Vars); + TD->setAccess(AS_public); + Owner->addDecl(TD); + return TD; }