Skip to content

Commit 44c5bd5

Browse files
committed
Fix comments.
1 parent d5fcbf3 commit 44c5bd5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertPointerLikeType(
237237
return mlir::LLVM::DIDerivedTypeAttr::get(
238238
context, llvm::dwarf::DW_TAG_pointer_type,
239239
mlir::StringAttr::get(context, ""), elTyAttr, ptrSize,
240-
/*alignInBits*/ 0, /* offset */ 0,
241-
/* optional<address space> */ std::nullopt, /* extra data */ nullptr);
240+
/*alignInBits=*/0, /*offset=*/0,
241+
/*optional<address space>=*/std::nullopt, /*extra data=*/nullptr);
242242
}
243243

244244
mlir::LLVM::DITypeAttr
@@ -284,7 +284,8 @@ DebugTypeGenerator::convertType(mlir::Type Ty, mlir::LLVM::DIFileAttr fileAttr,
284284
false);
285285
if (auto heapTy = mlir::dyn_cast_or_null<fir::HeapType>(elTy))
286286
return convertPointerLikeType(heapTy.getElementType(), fileAttr, scope,
287-
loc, true, false);
287+
loc, /*genAllocated=*/true,
288+
/*genAssociated=*/false);
288289
return genPlaceholderType(context);
289290
} else {
290291
// FIXME: These types are currently unhandled. We are generating a

0 commit comments

Comments
 (0)