Skip to content

Commit e4e655c

Browse files
committed
fixup! remove disable switch inline flag
1 parent 357c3a1 commit e4e655c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/patchestry/AST/OperationStmt.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,7 @@ namespace patchestry::ast {
876876
// Try to inline the target block body for has_exit cases.
877877
// Requirements: block exists, has ordered ops, terminal op is BRANCH.
878878
bool inlined = false;
879-
if (!function_builder().disable_switch_case_inline
880-
&& sc.has_exit && function.basic_blocks.contains(sc.target_block)) {
879+
if (sc.has_exit && function.basic_blocks.contains(sc.target_block)) {
881880
const auto &tb = function.basic_blocks.at(sc.target_block);
882881
if (!tb.ordered_operations.empty()) {
883882
const auto &last_op_key = tb.ordered_operations.back();

0 commit comments

Comments
 (0)