[OPENMP] Allow to use the variable in the same 'threadprivate'

directive.

llvm-svn: 260215
This commit is contained in:
Alexey Bataev 2016-02-09 09:41:42 +00:00
parent 3e6c45a41c
commit 13b509cd92
1 changed files with 0 additions and 3 deletions

View File

@ -1289,9 +1289,6 @@ Sema::CheckOMPThreadPrivateDecl(SourceLocation Loc, ArrayRef<Expr *> 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(