Skip to content

Commit 8292458

Browse files
fix no terminator error
1 parent 0b36119 commit 8292458

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libfuncs/circuit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ fn build_eval<'ctx, 'this>(
397397

398398
// Build output struct
399399
let outputs_type_id = &info.branch_signatures()[0].vars[2].ty;
400-
let ref_count = entry.const_int(context, location, 1, 8)?;
400+
let ref_count = ok_block.const_int(context, location, 1, 8)?;
401401
let outputs = build_struct_value(
402402
context,
403403
registry,

src/types/circuit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ pub fn build_circuit_outputs<'ctx>(
346346
context,
347347
location,
348348
outputs,
349-
llvm::r#type::pointer(context, 0),
349+
u8_ty,
350350
0,
351351
)?;
352352

0 commit comments

Comments
 (0)