================ @@ -97,7 +269,7 @@ getOmpObjectSymbol(const Fortran::parser::OmpObject &ompObject) { if (auto *arrayEle = Fortran::parser::Unwrap<Fortran::parser::ArrayElement>( designator)) { - sym = GetFirstName(arrayEle->base).symbol; + sym = GetLastName(arrayEle->base).symbol; ---------------- skatrak wrote:
Thank you for the explanation, it does make a lot of sense to me (and hopefully to whoever comes by and reads the comment later). https://github.com/llvm/llvm-project/pull/82853 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits