[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:38 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: None (FruitClover)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/81796.diff
1 Files Affected:
- (modified) clang/include/clang/Parse/RAIIObjectsForParser.h (+1-1)
``````````diff
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(); }
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/81796
More information about the cfe-commits
mailing list