@@ -6,8 +6,7 @@ use super::WithSelf;
66use crate :: {
77 error:: { Result , SierraAssertError } ,
88 metadata:: {
9- drop_overrides:: DropOverridesMeta , dup_overrides:: DupOverridesMeta ,
10- realloc_bindings:: ReallocBindingsMeta , MetadataStorage ,
9+ debug_utils:: DebugUtils , drop_overrides:: DropOverridesMeta , dup_overrides:: DupOverridesMeta , realloc_bindings:: ReallocBindingsMeta , MetadataStorage
1110 } ,
1211 utils:: { get_integer_layout, layout_repeat, ProgramRegistryExt } ,
1312} ;
@@ -324,9 +323,9 @@ pub fn build_circuit_outputs<'ctx>(
324323 let ref_count = entry. extract_value ( context, location, outputs, u8_ty, 0 ) ?;
325324 let ref_count_inc = entry. addi ( ref_count, k1, location) ?;
326325
327- entry. insert_value ( context, location, outputs, ref_count_inc, 0 ) ?;
326+ let output_new = entry. insert_value ( context, location, outputs, ref_count_inc, 0 ) ?;
328327
329- entry. append_operation ( func:: r#return ( & [ outputs , outputs ] , location) ) ;
328+ entry. append_operation ( func:: r#return ( & [ output_new , output_new ] , location) ) ;
330329
331330 Ok ( Some ( region) )
332331 } ,
0 commit comments