Allow x in ptr_to_map_or_bit_set

This commit is contained in:
gingerBill
2021-07-10 11:18:19 +01:00
parent 141573c18c
commit 3662275119
3 changed files with 18 additions and 10 deletions
+5
View File
@@ -7753,6 +7753,11 @@ lbValue lb_build_binary_expr(lbProcedure *p, Ast *expr) {
Type *type = default_type(tv.type);
lbValue right = lb_build_expr(p, be->right);
Type *rt = base_type(right.type);
if (is_type_pointer(rt)) {
right = lb_emit_load(p, right);
rt = type_deref(rt);
}
switch (rt->kind) {
case Type_Map:
{