Skip to content

Commit 9613fdf

Browse files
waskyosipma
authored andcommitted
Revert "CFG: revert change for single-stmt block"
This reverts commit 9f6af5a. This is a revert of a revert of b406023 b406023 was causing some regression test failures but that was because the patcher side of things had not been merged.
1 parent 9f6af5a commit 9613fdf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

chb/app/Cfg.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,6 @@ def stmt_ast(
477477
fn = astfn.function
478478

479479
def mk_block(stmts: List[AST.ASTStmt]) -> AST.ASTStmt:
480-
if len(stmts) == 1 and not stmts[0].is_ast_instruction_sequence:
481-
return stmts[0]
482480
return astree.mk_block(stmts)
483481

484482
gotolabels: Set[str] = set() # this is both used and mutated by run_with_gotolabels()

0 commit comments

Comments
 (0)