Make map val struct type allocation work by fixing pointer deref and debuginfogen: WIP

This commit is contained in:
Pragyansh Chaturvedi
2025-11-22 13:20:09 +05:30
parent e5b3b001ce
commit 9def969592
4 changed files with 97 additions and 3 deletions

View File

@ -48,3 +48,10 @@ def deref_to_depth(func, builder, val, target_depth):
cur_val = phi
cur_type = pointee_type
return cur_val
def deref_struct_ptr(
func, builder, struct_ptr, struct_metadata, field_name, structs_sym_tab
):
"""Dereference a pointer to a struct type."""
return deref_to_depth(func, builder, struct_ptr, 1)