aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-11-24 11:20:28 +0000
committergingerBill <bill@gingerbill.org>2022-11-24 11:20:28 +0000
commit7352c312e0cc2bb820a3d62ab42f4efb8b797a17 (patch)
tree4ed1e39e926ae87d016af552ae99f9495dbda148 /src
parent0befadde1dc9229526f0d200e423ed6360b1c1a4 (diff)
Fix type for split returns code
Diffstat (limited to 'src')
-rw-r--r--src/llvm_backend_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_stmt.cpp b/src/llvm_backend_stmt.cpp
index d026d2ecd..46144aa00 100644
--- a/src/llvm_backend_stmt.cpp
+++ b/src/llvm_backend_stmt.cpp
@@ -1713,7 +1713,7 @@ void lb_build_return_stmt(lbProcedure *p, Slice<Ast *> const &return_results) {
for_array(i, result_eps) {
lbValue result_ep = {};
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;
}
for_array(i, result_eps) {