[flang-commits] [flang] [flang][acc] Ensure fir.class is handled in type categorization (PR #146174)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Fri Jun 27 16:20:29 PDT 2025
================
@@ -320,8 +320,13 @@ template <>
mlir::acc::VariableTypeCategory
OpenACCMappableModel<fir::BaseBoxType>::getTypeCategory(mlir::Type type,
mlir::Value var) const {
+ // Class-type does not behave like a normal box because it does not hold an
+ // element type. Thus special handle it here.
+ if (mlir::isa<fir::ClassType>(type))
+ return mlir::acc::VariableTypeCategory::composite;
----------------
clementval wrote:
Should we make a distinction for unlimited polymorphic that can be smth else than a composite?
https://github.com/llvm/llvm-project/pull/146174
More information about the flang-commits
mailing list