[flang-commits] [flang] [flang][OpenMP] Support custom mappers in target update to/from clauses (PR #169673)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Thu Jan 15 07:56:20 PST 2026
================
@@ -1881,13 +1881,13 @@ void OmpVisitor::ResolveMapperModifier(parser::OmpMapper &mapper) {
context().Say(mapper.v.source,
"Name '%s' should be a mapper name"_err_en_US, mapper.v.source);
else
- mapper.v.symbol = symbol;
+ const_cast<parser::OmpMapper &>(mapper).v.symbol = symbol;
} else {
// Allow the special 'default' mapper identifier without prior
// declaration so lowering can recognize and handle it. Emit an
// error for any other missing mapper identifier.
if (mapper.v.source.ToString() == "default") {
- mapper.v.symbol =
+ const_cast<parser::OmpMapper &>(mapper).v.symbol =
----------------
kparzysz wrote:
Same here.
https://github.com/llvm/llvm-project/pull/169673
More information about the flang-commits
mailing list