Skip to content

Commit 2d133aa

Browse files
committed
[OpenACC] Fix 'classof' for two unused types.
While implementing a different clause, I discovered these placeholder clauses had their 'classof' implementation done incorrectly, so this fixes that.
1 parent e34e27f commit 2d133aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang/AST/OpenACCClause.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class OpenACCVectorClause : public OpenACCClause {
157157

158158
public:
159159
static bool classof(const OpenACCClause *C) {
160-
return C->getClauseKind() == OpenACCClauseKind::Gang;
160+
return C->getClauseKind() == OpenACCClauseKind::Vector;
161161
}
162162

163163
static OpenACCVectorClause *
@@ -183,7 +183,7 @@ class OpenACCWorkerClause : public OpenACCClause {
183183

184184
public:
185185
static bool classof(const OpenACCClause *C) {
186-
return C->getClauseKind() == OpenACCClauseKind::Gang;
186+
return C->getClauseKind() == OpenACCClauseKind::Worker;
187187
}
188188

189189
static OpenACCWorkerClause *

0 commit comments

Comments
 (0)