diff options
| author | gingerBill <bill@gingerbill.org> | 2023-12-13 12:38:01 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-12-13 12:38:01 +0000 |
| commit | bc99bacb2122f073133ddf6eeb31b4db56a99fa7 (patch) | |
| tree | 6743c1ff2bd85ed8529569238d366b21840a4882 /src/tilde_expr.cpp | |
| parent | 173527d6319752d1bc56db41ed33ab7904c9e13b (diff) | |
Update Tilde
Diffstat (limited to 'src/tilde_expr.cpp')
| -rw-r--r-- | src/tilde_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tilde_expr.cpp b/src/tilde_expr.cpp index 867b761d4..236d0cf7d 100644 --- a/src/tilde_expr.cpp +++ b/src/tilde_expr.cpp @@ -3262,7 +3262,7 @@ gb_internal cgValue cg_build_expr_internal(cgProcedure *p, Ast *expr) { if (is_type_untyped(type)) { return cg_value(cast(TB_Node *)nullptr, t_untyped_uninit); } - return cg_value(tb_inst_poison(p->func), type); + return cg_value(tb_inst_poison(p->func, cg_data_type(type)), type); case_end; case_ast_node(de, DerefExpr, expr); |