mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Reproduce code gen crash
This commit is contained in:
parent
ff8937b142
commit
f8fc9cf577
3 changed files with 9 additions and 4 deletions
|
@ -3607,7 +3607,12 @@ fn expose_function_to_host_help_c_abi_v2<'a, 'ctx, 'env>(
|
|||
_ => ¶m_types,
|
||||
};
|
||||
|
||||
debug_assert_eq!(params.len(), param_types.len());
|
||||
debug_assert!(
|
||||
params.len() == param_types.len(),
|
||||
"when exposing a function to the host, params.len() was {}, but param_types.len() was {}",
|
||||
params.len(),
|
||||
param_types.len()
|
||||
);
|
||||
|
||||
let it = params.iter().zip(param_types).map(|(arg, fastcc_type)| {
|
||||
let arg_type = arg.get_type();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue