aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-03-27 17:21:12 +0000
committergingerBill <bill@gingerbill.org>2021-03-27 17:21:12 +0000
commit342761e83a43d7dd79df43c00a816fa4a18abc4e (patch)
treec739755b30eda1b21c143d621610690cf54452db /src/check_expr.cpp
parent87bc9275fe0b4138804290e348a3f9d05d199cf0 (diff)
Refactor record polymorphic params code for unification
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 98d289aa5..20540c839 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -5915,7 +5915,8 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
i32 i = id - cast(i32)BuiltinProc__type_simple_boolean_begin;
auto procedure = builtin_type_is_procs[i];
GB_ASSERT_MSG(procedure != nullptr, "%.*s", LIT(builtin_name));
- operand->value = exact_value_bool(procedure(operand->type));
+ bool ok = procedure(operand->type);
+ operand->value = exact_value_bool(ok);
}
operand->mode = Addressing_Constant;
operand->type = t_untyped_bool;