@@ -685,11 +685,6 @@ DebugTypeGenerator::convertType(mlir::Type Ty, mlir::LLVM::DIFileAttr fileAttr,
685
685
llvmTypeConverter.getIndexTypeBitwidth (),
686
686
llvm::dwarf::DW_ATE_signed);
687
687
} else if (auto boxTy = mlir::dyn_cast_or_null<fir::BaseBoxType>(Ty)) {
688
- if (mlir::isa<fir::ClassType>(Ty))
689
- return convertPointerLikeType (boxTy.unwrapInnerType (), fileAttr, scope,
690
- declOp, /* genAllocated=*/ false ,
691
- /* genAssociated=*/ true );
692
-
693
688
auto elTy = boxTy.getEleTy ();
694
689
if (auto seqTy = mlir::dyn_cast_or_null<fir::SequenceType>(elTy))
695
690
return convertBoxedSequenceType (seqTy, fileAttr, scope, declOp, false ,
@@ -702,7 +697,9 @@ DebugTypeGenerator::convertType(mlir::Type Ty, mlir::LLVM::DIFileAttr fileAttr,
702
697
return convertPointerLikeType (ptrTy.getElementType (), fileAttr, scope,
703
698
declOp, /* genAllocated=*/ false ,
704
699
/* genAssociated=*/ true );
705
- return genPlaceholderType (context);
700
+ return convertPointerLikeType (elTy, fileAttr, scope, declOp,
701
+ /* genAllocated=*/ false ,
702
+ /* genAssociated=*/ false );
706
703
} else {
707
704
// FIXME: These types are currently unhandled. We are generating a
708
705
// placeholder type to allow us to test supported bits.
0 commit comments