Allocate hashmap lookup return vars based on the value type of said hashmap

This commit is contained in:
Pragyansh Chaturvedi
2025-11-19 04:09:51 +05:30
parent 9f5ec62383
commit 19b42b9a19
4 changed files with 79 additions and 8 deletions

View File

@ -147,7 +147,9 @@ def allocate_mem(
structs_sym_tab,
)
elif isinstance(stmt, ast.Assign):
handle_assign_allocation(builder, stmt, local_sym_tab, structs_sym_tab)
handle_assign_allocation(
builder, stmt, local_sym_tab, map_sym_tab, structs_sym_tab
)
allocate_temp_pool(builder, max_temps_needed, local_sym_tab)