Fix LLVM API backend for procedure "constant" values

This commit is contained in:
gingerBill
2020-04-17 13:50:28 +01:00
parent 602a651613
commit 4438b3e7af
3 changed files with 25 additions and 26 deletions

View File

@@ -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) {