Skip to content

Commit 64d7e45

Browse files
authored
Revert "[flang][debug] Support mlir::NoneType." (#113769)
Reverts #113550 It turns out this causes compiler crashes with assumed-type arrays and -g. See #113769 for a reproducer.
1 parent d78d030 commit 64d7e45

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,6 @@ DebugTypeGenerator::convertType(mlir::Type Ty, mlir::LLVM::DIFileAttr fileAttr,
581581
/*genAssociated=*/false);
582582
} else if (auto vecTy = mlir::dyn_cast_or_null<fir::VectorType>(Ty)) {
583583
return convertVectorType(vecTy, fileAttr, scope, declOp);
584-
} else if (mlir::isa<mlir::NoneType>(Ty)) {
585-
return mlir::LLVM::DINullTypeAttr::get(context);
586584
} else if (auto boxTy = mlir::dyn_cast_or_null<fir::BoxType>(Ty)) {
587585
auto elTy = boxTy.getElementType();
588586
if (auto seqTy = mlir::dyn_cast_or_null<fir::SequenceType>(elTy))

flang/test/Transforms/debug-none-type.fir

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)