[clang] 2d133aa - [OpenACC] Fix 'classof' for two unused types.
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 07:21:21 PDT 2024
Author: erichkeane
Date: 2024-10-11T07:21:16-07:00
New Revision: 2d133aaaeb97df62a92de80dae48f6bd8859a9e3
URL: https://github.com/llvm/llvm-project/commit/2d133aaaeb97df62a92de80dae48f6bd8859a9e3
DIFF: https://github.com/llvm/llvm-project/commit/2d133aaaeb97df62a92de80dae48f6bd8859a9e3.diff
LOG: [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.
Added:
Modified:
clang/include/clang/AST/OpenACCClause.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/OpenACCClause.h b/clang/include/clang/AST/OpenACCClause.h
index e4f2e07222a338..b500acc768e55a 100644
--- a/clang/include/clang/AST/OpenACCClause.h
+++ b/clang/include/clang/AST/OpenACCClause.h
@@ -157,7 +157,7 @@ class OpenACCVectorClause : public OpenACCClause {
public:
static bool classof(const OpenACCClause *C) {
- return C->getClauseKind() == OpenACCClauseKind::Gang;
+ return C->getClauseKind() == OpenACCClauseKind::Vector;
}
static OpenACCVectorClause *
@@ -183,7 +183,7 @@ class OpenACCWorkerClause : public OpenACCClause {
public:
static bool classof(const OpenACCClause *C) {
- return C->getClauseKind() == OpenACCClauseKind::Gang;
+ return C->getClauseKind() == OpenACCClauseKind::Worker;
}
static OpenACCWorkerClause *
More information about the cfe-commits
mailing list