Skip to content

Commit

Permalink
use main_id
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Jan 22, 2025
1 parent 9092edf commit 69dff3f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/noirc_evaluator/src/brillig/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ impl Ssa {
return brillig;
}

let func_id = brillig_reachable_function_ids
.first()
.expect("ICE: Should have a reachable function at this point");
let globals = (*self.functions[func_id].dfg.globals).clone();
let globals = (*self.functions[&self.main_id].dfg.globals).clone();
let (artifact, brillig_globals, globals_size) =
convert_ssa_globals(enable_debug_trace, globals, &self.used_global_values);
brillig.globals = artifact;
Expand Down

0 comments on commit 69dff3f

Please sign in to comment.