[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 27 03:49:49 PDT 2025
================
@@ -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)
----------------
alexey-bataev wrote:
Try to fix in a single loop at first. If it does not work, try splitting
https://github.com/llvm/llvm-project/pull/145454
More information about the cfe-commits
mailing list