Fix double map dereference indexing

This commit is contained in:
gingerBill
2022-01-26 16:37:16 +00:00
parent 081a5a52a6
commit b190404b21
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -271,6 +271,10 @@ lbAddr lb_addr(lbValue addr) {
lbAddr lb_addr_map(lbValue addr, lbValue map_key, Type *map_type, Type *map_result) {
GB_ASSERT(is_type_pointer(addr.type));
Type *mt = type_deref(addr.type);
GB_ASSERT(is_type_map(mt));
lbAddr v = {lbAddr_Map, addr};
v.map.key = map_key;
v.map.type = map_type;