================ @@ -953,6 +954,22 @@ bool ClauseProcessor::processMap( if (origSymbol && fir::isTypeWithDescriptor(origSymbol.getType())) symAddr = origSymbol; + if (object.sym()->owner().IsDerivedType()) { + omp::ObjectList objectList = gatherObjects(object, semaCtx); + parentObj = objectList[0]; + parentMemberIndices.insert({parentObj.value(), {}}); ---------------- skatrak wrote:
Nit: I think `parentMemberIndices.emplace(parentObj.value(), {})` might a good alternative here, though feel free to ignore if you disagree. If the key was already in the map, the value wouldn't replace the existing one (I think the same is true for `insert`). https://github.com/llvm/llvm-project/pull/96266 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits