r203225 - [OPENMP] Fix for threadprivate construct instantiatiation.

Alexey Bataev a.bataev at hotmail.com
Fri Mar 7 01:46:29 PST 2014


Author: abataev
Date: Fri Mar  7 03:46:29 2014
New Revision: 203225

URL: http://llvm.org/viewvc/llvm-project?rev=203225&view=rev
Log:
[OPENMP] Fix for threadprivate construct instantiatiation.

Modified:
    cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp?rev=203225&r1=203224&r2=203225&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp Fri Mar  7 03:46:29 2014
@@ -2325,6 +2325,9 @@ Decl *TemplateDeclInstantiator::VisitOMP
   OMPThreadPrivateDecl *TD =
     SemaRef.CheckOMPThreadPrivateDecl(D->getLocation(), Vars);
 
+  TD->setAccess(AS_public);
+  Owner->addDecl(TD);
+
   return TD;
 }
 





More information about the cfe-commits mailing list