[Openmp-commits] [clang] [openmp] [Clang][OpenMP] Fix ordering of processing of map clauses when mapping a struct. (PR #72410)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Tue Nov 21 06:51:04 PST 2023
================
@@ -7731,10 +7731,30 @@ class MappableExprsHandler {
IsImplicit, Mapper, VarRef, ForDeviceAddr);
};
+ // Sort all map clauses and make sure all the maps containing array
+ // sections are processed last.
+ llvm::SmallVector<const OMPMapClause *, 16> SortedMapClauses;
----------------
jhuber6 wrote:
It's called "SortedMapClauses" but I don't see any sorting, we just push back into the vector.
https://github.com/llvm/llvm-project/pull/72410
More information about the Openmp-commits
mailing list