mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix type for split returns code
This commit is contained in:
@@ -1713,7 +1713,7 @@ void lb_build_return_stmt(lbProcedure *p, Slice<Ast *> const &return_results) {
|
|||||||
for_array(i, result_eps) {
|
for_array(i, result_eps) {
|
||||||
lbValue result_ep = {};
|
lbValue result_ep = {};
|
||||||
result_ep.value = LLVMGetParam(p->value, cast(unsigned)(param_offset+i));
|
result_ep.value = LLVMGetParam(p->value, cast(unsigned)(param_offset+i));
|
||||||
result_ep.type = tuple->variables[i]->type;
|
result_ep.type = alloc_type_pointer(tuple->variables[i]->type);
|
||||||
result_eps[i] = result_ep;
|
result_eps[i] = result_ep;
|
||||||
}
|
}
|
||||||
for_array(i, result_eps) {
|
for_array(i, result_eps) {
|
||||||
|
|||||||
Reference in New Issue
Block a user