Add checks on enum conversion in safe mode. Bump to 0.3.38.

This commit is contained in:
Christoffer Lerno
2022-09-09 17:18:27 +02:00
parent a0a2e27127
commit fa89ea7b79
7 changed files with 31 additions and 8 deletions

View File

@@ -152,7 +152,7 @@ void llvm_emit_decl_expr_list(GenContext *context, BEValue *be_value, Expr *expr
if (type->type_kind != TYPE_BOOL)
{
CastKind cast = cast_to_bool_kind(type);
llvm_emit_cast(context, cast, be_value, type, type_bool);
llvm_emit_cast(context, cast, last, be_value, type, type_bool);
}
}
}