Author: erichkeane Date: 2024-04-10T09:25:57-07:00 New Revision: 48c5c70fdd3bec2929e2e903e3bf4494a65f7a92
URL: https://github.com/llvm/llvm-project/commit/48c5c70fdd3bec2929e2e903e3bf4494a65f7a92 DIFF: https://github.com/llvm/llvm-project/commit/48c5c70fdd3bec2929e2e903e3bf4494a65f7a92.diff LOG: [NFC] Update SemaRef.Diag to just Diag in OpenACC implementation I missed these two in my last patch as the two patches crossed in review, so correct this now. Added: Modified: clang/lib/Sema/SemaOpenACC.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/SemaOpenACC.cpp b/clang/lib/Sema/SemaOpenACC.cpp index b6afb80b873e2c..a6f4453e525d01 100644 --- a/clang/lib/Sema/SemaOpenACC.cpp +++ b/clang/lib/Sema/SemaOpenACC.cpp @@ -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; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits