| author | |
| committer | |
| log | 5bdcdd1669de05ea4b09e8319186f2792626f003 |
| tree | 8c9f844c1223dc61fea3fa42eb5dff9ac29ea840 |
| parent | 207862647c00ef824a6dd43be0bfc69d844fc075 |
resulting in fewer redundant error messages1 files changed, 1 insertions(+), 1 deletions(-)
src/analyze.cpp+1-1| ... | ... | @@ -4155,7 +4155,7 @@ static TypeTableEntry *analyze_builtin_fn_call_expr(CodeGen *g, ImportTableEntry |
| 4155 | 4155 | |
| 4156 | 4156 | if (!const_expr_val->ok) { |
| 4157 | 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 | 4161 | ConstExprValue *const_val = &get_resolved_expr(node)->const_val; |