================
@@ -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;
----------------
doru1004 wrote:

I can't find any "bug" in the existing code. It works as intended. The problem 
is that it doesn't handle these types of situations and I don't see how else to 
fix an ordering problem other than by re-ordering. If you have a different 
solution in mind please let me know.

https://github.com/llvm/llvm-project/pull/72410
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to