[clang] b14731f - [OpenACC][NFC] Fix parse result from 'set'
via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 8 07:59:12 PST 2024
Author: erichkeane
Date: 2024-02-08T07:57:57-08:00
New Revision: b14731fe93d0db9a59984783051880795ae0992d
URL: https://github.com/llvm/llvm-project/commit/b14731fe93d0db9a59984783051880795ae0992d
DIFF: https://github.com/llvm/llvm-project/commit/b14731fe93d0db9a59984783051880795ae0992d.diff
LOG: [OpenACC][NFC] Fix parse result from 'set'
Apparently 'set' was being parsed as 'shutdown'. There isn't really any
way of detecting this without getting into a Sema implementation,
however fixing this now as I noticed it.
Added:
Modified:
clang/lib/Parse/ParseOpenACC.cpp
Removed:
################################################################################
diff --git a/clang/lib/Parse/ParseOpenACC.cpp b/clang/lib/Parse/ParseOpenACC.cpp
index 1fee9f82b3e6a3..e099d077198d09 100644
--- a/clang/lib/Parse/ParseOpenACC.cpp
+++ b/clang/lib/Parse/ParseOpenACC.cpp
@@ -54,7 +54,7 @@ OpenACCDirectiveKindEx getOpenACCDirectiveKind(Token Tok) {
.Case("declare", OpenACCDirectiveKind::Declare)
.Case("init", OpenACCDirectiveKind::Init)
.Case("shutdown", OpenACCDirectiveKind::Shutdown)
- .Case("set", OpenACCDirectiveKind::Shutdown)
+ .Case("set", OpenACCDirectiveKind::Set)
.Case("update", OpenACCDirectiveKind::Update)
.Case("wait", OpenACCDirectiveKind::Wait)
.Default(OpenACCDirectiveKind::Invalid);
More information about the cfe-commits
mailing list