aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-06-22 16:57:21 +0100
committergingerBill <bill@gingerbill.org>2020-06-22 16:57:21 +0100
commit2b27300387030c635acee783a2e573960ae3f748 (patch)
treed718a117e76c77482f6e75d415fc5b3bfd3ca198 /src/check_expr.cpp
parent0db1ebb4e5bf36a7c44b9119bcf3055a58fd6103 (diff)
Fix LLVM code gen bug
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index fa25fd899..a2b7bb057 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -58,7 +58,7 @@ ExprKind check_expr_base (CheckerContext *c, Operand *operand, As
void check_expr_with_type_hint (CheckerContext *c, Operand *o, Ast *e, Type *t);
Type * check_type (CheckerContext *c, Ast *expression);
Type * check_type_expr (CheckerContext *c, Ast *expression, Type *named_type);
-Type * make_optional_ok_type (Type *value);
+Type * make_optional_ok_type (Type *value, bool typed=true);
void check_type_decl (CheckerContext *c, Entity *e, Ast *type_expr, Type *def);
Entity * check_selector (CheckerContext *c, Operand *operand, Ast *node, Type *type_hint);
Entity * check_ident (CheckerContext *c, Operand *o, Ast *n, Type *named_type, Type *type_hint, bool allow_import_name);
@@ -5532,7 +5532,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
check_assignment(c, &y, elem, builtin_name);
operand->mode = Addressing_Value;
- operand->type = make_optional_ok_type(elem);
+ operand->type = make_optional_ok_type(elem, /*typed*/false);
break;
}
break;