[clang] [openmp] [Clang][OpenMP] Fix ordering of processing of map clauses when mapping a struct. (PR #72410)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 20 18:59:30 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:

What implies that this is sorted?

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


More information about the cfe-commits mailing list