Skip to content

Commit 48c5c70

Browse files
committed
[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.
1 parent 43b2b2e commit 48c5c70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaOpenACC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ SemaOpenACC::ActOnClause(ArrayRef<const OpenACCClause *> ExistingClauses,
102102
});
103103

104104
if (Itr != ExistingClauses.end()) {
105-
SemaRef.Diag(Clause.getBeginLoc(),
105+
Diag(Clause.getBeginLoc(),
106106
diag::err_acc_duplicate_clause_disallowed)
107107
<< Clause.getDirectiveKind() << Clause.getClauseKind();
108-
SemaRef.Diag((*Itr)->getBeginLoc(), diag::note_acc_previous_clause_here);
108+
Diag((*Itr)->getBeginLoc(), diag::note_acc_previous_clause_here);
109109
return nullptr;
110110
}
111111

0 commit comments

Comments
 (0)