aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 80f6034a9c..700a3e7a85 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -4155,7 +4155,7 @@ static TypeTableEntry *analyze_builtin_fn_call_expr(CodeGen *g, ImportTableEntry
if (!const_expr_val->ok) {
add_node_error(g, *expr_node, buf_sprintf("unable to evaluate constant expression"));
- return resolved_type;
+ return g->builtin_types.entry_invalid;
}
ConstExprValue *const_val = &get_resolved_expr(node)->const_val;