Skip to content

Commit 684067c

Browse files
committed
attempt to fix endless recursion
1 parent cae69a0 commit 684067c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

flang/lib/Optimizer/CodeGen/TypeConverter.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,10 @@ mlir::Type LLVMTypeConverter::convertBoxTypeAsStruct(BaseBoxType box,
169169
// remove fir.heap/fir.ref/fir.ptr
170170
if (auto removeIndirection = fir::dyn_cast_ptrEleTy(ele))
171171
ele = removeIndirection;
172-
auto eleTy = convertType(ele);
172+
173173
// base_addr*
174-
if (mlir::isa<SequenceType>(ele) &&
175-
mlir::isa<mlir::LLVM::LLVMPointerType>(eleTy))
176-
dataDescFields.push_back(eleTy);
177-
else
178-
dataDescFields.push_back(
179-
mlir::LLVM::LLVMPointerType::get(eleTy.getContext()));
174+
dataDescFields.push_back(mlir::LLVM::LLVMPointerType::get(ele.getContext()));
175+
180176
// elem_len
181177
dataDescFields.push_back(
182178
getDescFieldTypeModel<kElemLenPosInBox>()(&getContext()));

0 commit comments

Comments
 (0)