================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits