[clang] [clang][OpenACC] Fix copy-paste name in ParsingOpenACCDirectiveRAII (PR #81796)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 14 14:18:04 PST 2024
https://github.com/FruitClover created https://github.com/llvm/llvm-project/pull/81796
None
>From e7b232ea0228a267bf92ec0bbd61b61eac9cb579 Mon Sep 17 00:00:00 2001
From: Mike Kashkarov <m.kashkarov at samsung.com>
Date: Thu, 8 Feb 2024 19:27:29 +0300
Subject: [PATCH] [clang][OpenACC] Fix copy-paste name in
ParsingOpenACCDirectiveRAII
---
clang/include/clang/Parse/RAIIObjectsForParser.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/include/clang/Parse/RAIIObjectsForParser.h b/clang/include/clang/Parse/RAIIObjectsForParser.h
index e1626a7870bb7a..f4fa518ef27d01 100644
--- a/clang/include/clang/Parse/RAIIObjectsForParser.h
+++ b/clang/include/clang/Parse/RAIIObjectsForParser.h
@@ -323,7 +323,7 @@ namespace clang {
/// This can be used to restore the state early, before the dtor
/// is run.
- void restore() { P.OpenMPDirectiveParsing = OldVal; }
+ void restore() { P.OpenACCDirectiveParsing = OldVal; }
~ParsingOpenACCDirectiveRAII() { restore(); }
};
More information about the cfe-commits
mailing list