Skip to content

Commit 6f41617

Browse files
committed
Removed default args from ActOnOpenMPOrderedClause function
1 parent c904944 commit 6f41617

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

clang/include/clang/Sema/SemaOpenMP.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,10 +1021,9 @@ class SemaOpenMP : public SemaBase {
10211021
OMPClause *ActOnOpenMPClause(OpenMPClauseKind Kind, SourceLocation StartLoc,
10221022
SourceLocation EndLoc);
10231023
/// Called on well-formed 'nowait' clause.
1024-
OMPClause *
1025-
ActOnOpenMPNowaitClause(SourceLocation StartLoc, SourceLocation EndLoc,
1026-
SourceLocation LParenLoc = SourceLocation(),
1027-
Expr *Condition = nullptr);
1024+
OMPClause *ActOnOpenMPNowaitClause(SourceLocation StartLoc,
1025+
SourceLocation EndLoc,
1026+
SourceLocation LParenLoc, Expr *Condition);
10281027
/// Called on well-formed 'untied' clause.
10291028
OMPClause *ActOnOpenMPUntiedClause(SourceLocation StartLoc,
10301029
SourceLocation EndLoc);

clang/lib/Sema/SemaOpenMP.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17957,7 +17957,9 @@ OMPClause *SemaOpenMP::ActOnOpenMPClause(OpenMPClauseKind Kind,
1795717957
Res = ActOnOpenMPOrderedClause(StartLoc, EndLoc);
1795817958
break;
1795917959
case OMPC_nowait:
17960-
Res = ActOnOpenMPNowaitClause(StartLoc, EndLoc);
17960+
Res = ActOnOpenMPNowaitClause(StartLoc, EndLoc,
17961+
/*LParenLoc=*/SourceLocation(),
17962+
/*Condition=*/nullptr);
1796117963
break;
1796217964
case OMPC_untied:
1796317965
Res = ActOnOpenMPUntiedClause(StartLoc, EndLoc);
@@ -18123,8 +18125,6 @@ OMPClause *SemaOpenMP::ActOnOpenMPNowaitClause(SourceLocation StartLoc,
1812318125

1812418126
ValExpr = Val.get();
1812518127
}
18126-
} else {
18127-
ValExpr = nullptr;
1812818128
}
1812918129
DSAStack->setNowaitRegion();
1813018130
return new (getASTContext())

0 commit comments

Comments
 (0)