Skip to content

Commit

Permalink
Just handle function parameters in brillig
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Jan 28, 2025
1 parent 3480b86 commit ea10cf3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ impl FunctionContext {
Type::Slice(_) => {
panic!("ICE: Slice parameters cannot be derived from type information")
}
_ => unimplemented!("Unsupported function parameter/return type {typ:?}"),
// Treat functions as field values
Type::Function => {
BrilligParameter::SingleAddr(get_bit_size_from_ssa_type(&Type::field()))
}
}
}

Expand Down

0 comments on commit ea10cf3

Please sign in to comment.