Skip to content

Commit

Permalink
[NFC] Update SemaRef.Diag to just Diag in OpenACC implementation
Browse files Browse the repository at this point in the history
I missed these two in my last patch as the two patches crossed in
review, so correct this now.
  • Loading branch information
erichkeane committed Apr 10, 2024
1 parent 43b2b2e commit 48c5c70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/Sema/SemaOpenACC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ SemaOpenACC::ActOnClause(ArrayRef<const OpenACCClause *> ExistingClauses,
});

if (Itr != ExistingClauses.end()) {
SemaRef.Diag(Clause.getBeginLoc(),
Diag(Clause.getBeginLoc(),
diag::err_acc_duplicate_clause_disallowed)
<< Clause.getDirectiveKind() << Clause.getClauseKind();
SemaRef.Diag((*Itr)->getBeginLoc(), diag::note_acc_previous_clause_here);
Diag((*Itr)->getBeginLoc(), diag::note_acc_previous_clause_here);
return nullptr;
}

Expand Down

0 comments on commit 48c5c70

Please sign in to comment.