File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3772,7 +3772,7 @@ class OMPReductionClause final
37723772 void setPrivateVariableReductionFlags (ArrayRef<bool > Flags) {
37733773 assert (Flags.size () == varlist_size () &&
37743774 " Number of private flags does not match vars" );
3775- llvm::copy (Flags,getTrailingObjects<bool >());
3775+ llvm::copy (Flags, getTrailingObjects<bool >());
37763776 }
37773777
37783778 // / Get the list of help private variable reduction flags
Original file line number Diff line number Diff line change @@ -18957,7 +18957,8 @@ static bool actOnOMPReductionKindClause(
1895718957 // Check if the construct is orphaned (has no enclosing OpenMP context)
1895818958 IsOrphaned = ParentDir == OMPD_unknown;
1895918959 // OpenMP 6.0: Private DSA check
18960- IsPrivate = (S.getLangOpts().OpenMP > 52) &&
18960+ IsPrivate =
18961+ (S.getLangOpts().OpenMP > 52) &&
1896118962 ((isOpenMPPrivate(DVar.CKind) && DVar.CKind != OMPC_reduction &&
1896218963 isOpenMPWorksharingDirective(CurrDir) &&
1896318964 !isOpenMPParallelDirective(CurrDir) &&
You can’t perform that action at this time.
0 commit comments