Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

Commit 73f90da

Browse files
committed
add FIXME(cir)
1 parent b8bf040 commit 73f90da

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenFunction.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,11 @@ static void eraseEmptyAndUnusedBlocks(cir::FuncOp fnOp) {
670670

671671
static void insertTrapInUnreachableBlocks(mlir::OpBuilder &builder,
672672
cir::FuncOp fnOp) {
673-
// Insert a TrapOp as a terminator into leftover blocks that are unreachable
674-
// and have no terminator.
673+
// Insert a TrapOp as a terminator into unreachable blocks that have no
674+
// terminator.
675+
// FIXME(cir): This is a defensive workaround. Once the handling of
676+
// unreachable code and clearing insertion points during cleanup is finalised,
677+
// we should probably remove this insertion.
675678
mlir::Block *entryBb = &fnOp.getBlocks().front();
676679

677680
SmallVector<mlir::Block *> blocksToTrap;

0 commit comments

Comments
 (0)