[flang-commits] [flang] [flang][debug] Support ClassType. (PR #114809)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Tue Nov 5 13:34:40 PST 2024


================
@@ -617,6 +617,20 @@ DebugTypeGenerator::convertType(mlir::Type Ty, mlir::LLVM::DIFileAttr fileAttr,
     return convertRecordType(recTy, fileAttr, scope, declOp);
   } else if (auto tupleTy = mlir::dyn_cast_if_present<mlir::TupleType>(Ty)) {
     return convertTupleType(tupleTy, fileAttr, scope, declOp);
+  } else if (auto classTy = mlir::dyn_cast_if_present<fir::ClassType>(Ty)) {
----------------
abidh wrote:

Thanks for your comments. I updated the patch to handle it with the BoxType. I also made another small change to handle cases like `CLASS(*)`.

https://github.com/llvm/llvm-project/pull/114809


More information about the flang-commits mailing list