Skip to content

Revisit insertion point being restored by an InsertionGuard in buildSwitchBody() #665

Open
@bcardosolopes

Description

@bcardosolopes
          These tests are failing because the insertion point is restored by an InsertionGuard in `buildSwitchBody()`. I suggest revising that part after #528 is merged to avoid conflict.

} else if (lastCaseBlock) {
// This means it's a random stmt following up a case, just
// emit it as part of previous known case.
mlir::OpBuilder::InsertionGuard guardCase(builder);
builder.setInsertionPointToEnd(lastCaseBlock);
res = buildStmt(c, /*useCurrentScope=*/!isa<CompoundStmt>(c));
} else {

Originally posted by @piggynl in #611 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions