Improve auto_cast logic

This commit is contained in:
gingerBill
2021-04-22 17:29:48 +01:00
parent 896057b5a7
commit ac53577e9b
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -8257,7 +8257,8 @@ irValue *ir_build_expr_internal(irProcedure *proc, Ast *expr) {
case_end;
case_ast_node(ac, AutoCast, expr);
return ir_build_expr(proc, ac->expr);
irValue *value = ir_build_expr(proc, ac->expr);
return ir_emit_conv(proc, value, tv.type);
case_end;
case_ast_node(ue, UnaryExpr, expr);