mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
parent
19c02aa087
commit
0f0e56a21c
2 changed files with 12 additions and 1 deletions
|
@ -3900,8 +3900,10 @@ fn make_exception_catching_wrapper<'a, 'ctx, 'env>(
|
|||
let argument_types = match RocReturn::from_layout(env, &return_layout) {
|
||||
RocReturn::Return => roc_function_type.get_param_types(),
|
||||
RocReturn::ByPointer => {
|
||||
// Our fastcc passes the return pointer as the last parameter.
|
||||
// Remove the return pointer since we now intend to return the result by value.
|
||||
let mut types = roc_function_type.get_param_types();
|
||||
types.remove(0);
|
||||
types.pop();
|
||||
|
||||
types
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue