| ... | @@ -4155,7 +4155,7 @@ static TypeTableEntry *analyze_builtin_fn_call_expr(CodeGen *g, ImportTableEntry | ... | @@ -4155,7 +4155,7 @@ static TypeTableEntry *analyze_builtin_fn_call_expr(CodeGen *g, ImportTableEntry |
| 4155 | | 4155 | |
| 4156 | if (!const_expr_val->ok) { | 4156 | if (!const_expr_val->ok) { |
| 4157 | add_node_error(g, *expr_node, buf_sprintf("unable to evaluate constant expression")); | 4157 | add_node_error(g, *expr_node, buf_sprintf("unable to evaluate constant expression")); |
| 4158 | return resolved_type; | 4158 | return g->builtin_types.entry_invalid; |
| 4159 | } | 4159 | } |
| 4160 | | 4160 | |
| 4161 | ConstExprValue *const_val = &get_resolved_expr(node)->const_val; | 4161 | ConstExprValue *const_val = &get_resolved_expr(node)->const_val; |