Skip to content

Commit

Permalink
fix: correct order of basic block successors
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q committed Jan 18, 2024
1 parent e0761ff commit 2d8ad06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guppylang/cfg/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,8 @@ def generic_visit(self, node: ast.expr, bb: BB, true_bb: BB, false_bb: BB) -> No
# the result as a branch predicate
pred, bb = ExprBuilder.build(node, self.cfg, bb)
bb.branch_pred = pred
self.cfg.link(bb, true_bb)
self.cfg.link(bb, false_bb)
self.cfg.link(bb, true_bb)


def is_functional_annotation(stmt: ast.stmt) -> bool:
Expand Down

0 comments on commit 2d8ad06

Please sign in to comment.