[Mlir-commits] [flang] [mlir] [flang][OpenMP] Implement HAS_DEVICE_ADDR clause (PR #128568)
Sergio Afonso
llvmlistbot at llvm.org
Thu Feb 27 06:31:01 PST 2025
================
@@ -159,8 +159,8 @@ std::optional<Object> getBaseObject(const Object &object,
return Object{SymbolAndDesignatorExtractor::symbol_addr(comp->symbol()),
ea.Designate(evaluate::DataRef{
SymbolAndDesignatorExtractor::AsRvalueRef(*comp)})};
- } else if (base.UnwrapSymbolRef()) {
- return std::nullopt;
+ } else if (auto *symRef = base.UnwrapSymbolRef()) {
+ return Object{const_cast<semantics::Symbol *>(&**symRef), std::nullopt};
----------------
skatrak wrote:
Is this change specific to `has_device_addr`?
https://github.com/llvm/llvm-project/pull/128568
More information about the Mlir-commits
mailing list