forked from OSchip/llvm-project
[OPENMP] Allow to use the variable in the same 'threadprivate'
directive. llvm-svn: 260215
This commit is contained in:
parent
3e6c45a41c
commit
13b509cd92
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue