aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_const.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-22 11:16:29 +0100
committergingerBill <bill@gingerbill.org>2023-07-22 11:16:29 +0100
commit6c12156b1a47cb3c39e5c12d443e482af2a218bb (patch)
treea77bd904cb900cae01925f48fab04c9ae0f8ba4a /src/tilde_const.cpp
parenteec3b3009f0005090ddd5a7901e5f3c38cf31ce1 (diff)
Simplify procedure argument handling
Diffstat (limited to 'src/tilde_const.cpp')
-rw-r--r--src/tilde_const.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tilde_const.cpp b/src/tilde_const.cpp
index e066c72a3..6b1fb5c92 100644
--- a/src/tilde_const.cpp
+++ b/src/tilde_const.cpp
@@ -851,7 +851,7 @@ gb_internal cgValue cg_const_value(cgModule *m, cgProcedure *p, Type *type, Exac
TB_Node *node = tb_inst_get_symbol_address(p->func, symbol);
return cg_lvalue_addr(node, type);
} else {
- return cg_value(symbol, type);
+ return cg_value(symbol, alloc_type_pointer(type));
}
}