File tree 2 files changed +5
-4
lines changed
noirc_evaluator/src/brillig/brillig_gen
noirc_frontend/src/parser
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -471,9 +471,10 @@ impl<'block> BrilligBlock<'block> {
471
471
let typ = dfg[ value_id] . get_type ( ) ;
472
472
match typ {
473
473
Type :: Numeric ( _) => RegisterOrMemory :: RegisterIndex ( register_index) ,
474
- Type :: Array ( _, size) => {
475
- RegisterOrMemory :: HeapArray ( HeapArray { pointer : register_index, size } )
476
- }
474
+ Type :: Array ( ..) => RegisterOrMemory :: HeapArray ( HeapArray {
475
+ pointer : register_index,
476
+ size : compute_size_of_type ( & typ) ,
477
+ } ) ,
477
478
_ => {
478
479
unreachable ! ( "type not supported for conversion into brillig register" )
479
480
}
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ fn function_definition(allow_self: bool) -> impl NoirParser<NoirFunction> {
188
188
} )
189
189
}
190
190
191
- /// function_modifiers: 'unconstrained'? 'open'? 'internal'?
191
+ /// function_modifiers: 'unconstrained'? 'open'? 'internal'?
192
192
///
193
193
/// returns (is_unconstrained, is_open, is_internal) for whether each keyword was present
194
194
fn function_modifiers ( ) -> impl NoirParser < ( bool , bool , bool ) > {
You can’t perform that action at this time.
0 commit comments