diff options
| author | gingerBill <bill@gingerbill.org> | 2020-04-17 13:50:28 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-04-17 13:50:28 +0100 |
| commit | 4438b3e7afebc88dc5b39c39ec55d648ad7b8904 (patch) | |
| tree | 3da655ccdaef13909254296fb07e8b8f66b997f7 /src/check_expr.cpp | |
| parent | 602a651613cc144ed4690924aee4bf8cc1602efc (diff) | |
Fix LLVM API backend for procedure "constant" values
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index f401c993f..9879d3b8b 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -8038,7 +8038,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type fields_visited[sel.index[0]] = true; check_expr_or_type(c, o, fv->value, field->type); - if (is_type_any(field->type) || is_type_union(field->type) || is_type_raw_union(field->type)) { + if (is_type_any(field->type) || is_type_union(field->type) || is_type_raw_union(field->type) || is_type_typeid(field->type)) { is_constant = false; } if (is_constant) { |