We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e5a137 commit 2b05c62Copy full SHA for 2b05c62
clang/lib/Sema/SemaOpenACCClauseAppertainment.cpp
@@ -310,7 +310,8 @@ bool SemaOpenACC::DiagnoseExclusiveClauses(
310
return false;
311
312
for (const OpenACCClause *C : Clauses) {
313
- llvm::acc::Clause ExistingLLVMClause = getLLVMClauseFromClangClause(CK);
+ llvm::acc::Clause ExistingLLVMClause =
314
+ getLLVMClauseFromClangClause(C->getClauseKind());
315
if (Lists.AllowedExclusive.isSet(ExistingLLVMClause)) {
316
Diag(ClauseLoc, diag::err_acc_clause_cannot_combine)
317
<< CK << C->getClauseKind() << DK;
0 commit comments