From: Alexey Bataev Date: Tue, 9 Feb 2016 09:41:42 +0000 (+0000) Subject: [OPENMP] Allow to use the variable in the same 'threadprivate' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=943562e0bab2d5b29e27d5fd4e196f51806d61d7;p=clang [OPENMP] Allow to use the variable in the same 'threadprivate' directive. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260215 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOpenMP.cpp b/lib/Sema/SemaOpenMP.cpp index 480c2919d7..3ba5daa030 100644 --- a/lib/Sema/SemaOpenMP.cpp +++ b/lib/Sema/SemaOpenMP.cpp @@ -1289,9 +1289,6 @@ Sema::CheckOMPThreadPrivateDecl(SourceLocation Loc, ArrayRef VarList) { continue; } - // Variable is marked already - no need to check. - if (DSAStack->isThreadPrivate(VD)) - continue; Vars.push_back(RefExpr); DSAStack->addDSA(VD, DE, OMPC_threadprivate); VD->addAttr(OMPThreadPrivateDeclAttr::CreateImplicit(