We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6948050 commit 4443731Copy full SHA for 4443731
compiler/noirc_evaluator/src/brillig/brillig_gen.rs
@@ -58,7 +58,11 @@ pub(crate) fn gen_brillig_for(
58
brillig: &Brillig,
59
) -> Result<GeneratedBrillig<FieldElement>, InternalError> {
60
// Create the entry point artifact
61
- let globals_memory_size = brillig.globals_memory_size.get(&func.id()).copied().unwrap_or(0);
+ let globals_memory_size = brillig
62
+ .globals_memory_size
63
+ .get(&func.id())
64
+ .copied()
65
+ .expect("Should have the globals memory size specified for an entry point");
66
let mut entry_point = BrilligContext::new_entry_point_artifact(
67
arguments,
68
FunctionContext::return_values(func),
0 commit comments