[clang] 6e11ed2 - [clang][OpenACC] Fix copy-paste name in ParsingOpenACCDirectiveRAII (#81796)

via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 06:55:35 PST 2024


Author: FruitClover
Date: 2024-02-15T06:55:31-08:00
New Revision: 6e11ed240ba1769528d3eae47c7b8bbf9e4df19b

URL: https://github.com/llvm/llvm-project/commit/6e11ed240ba1769528d3eae47c7b8bbf9e4df19b
DIFF: https://github.com/llvm/llvm-project/commit/6e11ed240ba1769528d3eae47c7b8bbf9e4df19b.diff

LOG: [clang][OpenACC] Fix copy-paste name in ParsingOpenACCDirectiveRAII (#81796)

Added: 
    

Modified: 
    clang/include/clang/Parse/RAIIObjectsForParser.h

Removed: 
    


################################################################################
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