================ @@ -970,6 +972,20 @@ void ClauseProcessor::processMapObjects( } } + if (!mapperIdName.empty()) { + if (mapperIdName == "default") { + auto &typeSpec = object.sym()->owner().IsDerivedType() + ? *object.sym()->owner().derivedTypeSpec() + : object.sym()->GetType()->derivedTypeSpec(); ---------------- TIFitis wrote:
Yes, the `object.sym()` type is expected to be derivedType here. There is a check inside `derivedTypeSpec()` just in case. https://github.com/llvm/llvm-project/pull/121001 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits