diff options
Diffstat (limited to 'src/tilde_const.cpp')
| -rw-r--r-- | src/tilde_const.cpp | 2 |
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)); } } |