Skip to content

Commit d59c591

Browse files
author
Chandra Ghale
committed
Formatting fix
1 parent 923fafb commit d59c591

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clang/include/clang/AST/OpenMPClause.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

clang/lib/Sema/SemaOpenMP.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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) &&

0 commit comments

Comments
 (0)