[clang] [clang][OpenMP] Add 'align' modifier for 'allocate' clause (PR #121814)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 8 13:18:54 PST 2025


================
@@ -11824,10 +11824,14 @@ void OMPClauseReader::VisitOMPMapClause(OMPMapClause *C) {
 }
 
 void OMPClauseReader::VisitOMPAllocateClause(OMPAllocateClause *C) {
-  C->setAllocatorModifier(Record.readEnum<OpenMPAllocateClauseModifier>());
+  C->setFirstAllocateModifier(
+      static_cast<OpenMPAllocateClauseModifier>(Record.readInt()));
+  C->setSecondAllocateModifier(
+      static_cast<OpenMPAllocateClauseModifier>(Record.readInt()));
----------------
alexey-bataev wrote:

Why not readEnum?

https://github.com/llvm/llvm-project/pull/121814


More information about the cfe-commits mailing list