Skip to content

Commit

Permalink
Fix lint warnigns
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Steuernagel <[email protected]>
  • Loading branch information
LucasSte committed Nov 10, 2021
1 parent 2e65a29 commit 143c08f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/codegen/subexpression_elimination/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,14 @@ fn find_visiting_order(cfg: &ControlFlowGraph) -> Vec<(usize, bool)> {
let mut has_cycle: Vec<bool> = vec![false; cfg.blocks.len()];
let mut degrees: Vec<i32> = vec![0; cfg.blocks.len()];

cfg_dfs(0, cfg, &mut visited, &mut stack, &mut degrees, &mut has_cycle);
cfg_dfs(
0,
cfg,
&mut visited,
&mut stack,
&mut degrees,
&mut has_cycle,
);

let mut queue: VecDeque<usize> = VecDeque::new();
queue.push_back(0);
Expand Down

0 comments on commit 143c08f

Please sign in to comment.