stage1 重制类型转换系统 修复问题 提供更多表达式

This commit is contained in:
zzy committed 2026-09-16 11:36:29 +08:00
1 parent f6a0bce9f0
commit 7cbe2d2b9a
7 files changed
+509 -248

No files matched your search

+1 -1
View File
@@ -193,7 +193,7 @@ static spl_type_id_t ir_result_tid(spl_ir2vm_t *ctx, const spl_ir_node_t *n) {
case SPL_IR_CASE_FLOAT2INT:
return n->cast.to_tid;
case SPL_IR_MEM_ALLOCA:
return n->mem_alloc.tid;
return spl_type_builder_ptr((spl_type_t *)ctx->type, n->mem_alloc.tid);
case SPL_IR_MEM_GLOBAL_ALLOC:
return n->mem_global_alloc.tid;
case SPL_IR_MEM_LOAD: