Skip to content

Commit

Permalink
use entry_points[0] not brillig_function_id
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Jan 30, 2025
1 parent 40c3b5b commit 2e5e5d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl BrilligGlobals {
// Thus, if a call can be used by two entry points we should not use the hoisted constant allocations.
if entry_points.len() == 1 {
let hoisted_allocations =
self.entry_point_hoisted_globals_map.get(&brillig_function_id);
self.entry_point_hoisted_globals_map.get(&entry_points[0]);
let hoisted_allocations = hoisted_allocations.unwrap_or_else(|| panic!("ICE: Expected hoisted allocations to be set for function {brillig_function_id}"));
hoisted_constants_allocations.extend(hoisted_allocations);
}
Expand Down

0 comments on commit 2e5e5d7

Please sign in to comment.