Skip to content

Commit

Permalink
Update compiler/noirc_evaluator/src/ssa/opt/simplify_cfg.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Oct 2, 2024
1 parent 48466fe commit 580928b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_evaluator/src/ssa/opt/simplify_cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fn check_for_constant_jmpif(
function.dfg[block].set_terminator(jmp);
cfg.recompute_block(function, block);

// If `block` was the only predecessor to `unchose_destination` then it's no long reachable through the CFG,
// If `block` was the only predecessor to `unchosen_destination` then it's no long reachable through the CFG,
// we can then invalidate it successors as it's an invalid predecessor.
if cfg.predecessors(unchosen_destination).len() == 0 {
cfg.invalidate_block_successors(unchosen_destination);
Expand Down

0 comments on commit 580928b

Please sign in to comment.