Fix count_temps_in_call to only look for Pointer args of a helper_sig

This commit is contained in:
Pragyansh Chaturvedi
2025-11-05 17:36:37 +05:30
parent 3078d4224d
commit 338d4994d8

View File

@ -62,7 +62,9 @@ def count_temps_in_call(call_node, local_sym_tab):
):
continue
param_type = HelperHandlerRegistry.get_param_type(func_name, arg_idx)
count[param_type] = count.get(param_type, 0) + 1
if isinstance(param_type, ir.PointerType):
pointee_type = param_type.pointee
count[pointee_type] = count.get(pointee_type, 0) + 1
return count