================ @@ -8826,6 +8830,51 @@ class MappableExprsHandler { return (HasPresent && !HasPresentR) || (HasAllocs && !HasAllocsR); }); + auto GenerateInfoForComponentLists = + [&](ArrayRef<MapData> DeclComponentLists, + bool IsEligibleForTargetParamFlag) { + MapCombinedInfoTy CurInfoForComponentLists; + StructRangeInfoTy PartialStruct; ---------------- abhinavgaba wrote:
Moving PartialStruct here allows us to make it local to each set of DeclComponentLists, so when GenerateInfoForComponentLists is called multiple times with different lists, we'll get different combined entries and member-of flags for each of those lists. For now, this is called only once with the full set of DeclComponentLists from line 8867. https://github.com/llvm/llvm-project/pull/146891 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits