Skip to content

Commit c9cc6c4

Browse files
authored
[Clang][Sema][NFC] Remove duplicate check in if-condition (llvm#101070)
Resolves llvm#101041
1 parent 40b4fd7 commit c9cc6c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Sema/SemaOpenMP.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23087,8 +23087,7 @@ OMPClause *SemaOpenMP::ActOnOpenMPDoacrossClause(
2308723087
if (DSAStack->getCurrentDirective() == OMPD_ordered &&
2308823088
DepType != OMPC_DOACROSS_source && DepType != OMPC_DOACROSS_sink &&
2308923089
DepType != OMPC_DOACROSS_sink_omp_cur_iteration &&
23090-
DepType != OMPC_DOACROSS_source_omp_cur_iteration &&
23091-
DepType != OMPC_DOACROSS_source) {
23090+
DepType != OMPC_DOACROSS_source_omp_cur_iteration) {
2309223091
Diag(DepLoc, diag::err_omp_unexpected_clause_value)
2309323092
<< "'source' or 'sink'" << getOpenMPClauseName(OMPC_doacross);
2309423093
return nullptr;

0 commit comments

Comments
 (0)