================ @@ -8811,8 +8829,19 @@ class MappableExprsHandler { ++EI; } } - llvm::stable_sort(DeclComponentLists, [](const MapData &LHS, - const MapData &RHS) { + llvm::stable_sort(DeclComponentLists, [VD](const MapData &LHS, + const MapData &RHS) { + // For cases like map(p, p[0], p[0][0]), the shortest map, like map(p) ---------------- abhinavgaba wrote:
@alexey-bataev, I have uploaded the clang PR that builds upon this, to emit ATTACH maps for array-sections/subscripts/array-shaping/stars for which the attachable base-pointer is a regular, non-member pointer decl, here: https://github.com/abhinavgaba/llvm-project/pull/1 Feel free to take a look and provide your feedback. I haven't marked it ready yet since it needs the runtime change from https://github.com/llvm/llvm-project/pull/149036. @adurang has agreed to add a commit to the runtime PR to enable order-respecting submitData in the plugins, after which it should be ready. https://github.com/llvm/llvm-project/pull/145454 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits