Fix return for unknown map types

This commit is contained in:
Pragyansh Chaturvedi
2025-09-30 19:55:37 +05:30
parent d943b78a25
commit 0f3cc434a3

View File

@ -258,6 +258,6 @@ def process_bpf_map(func_node, module):
else:
logger.warning(f"Unknown map type "
f"{rval.func.id}, defaulting to HashMap")
process_hash_map(map_name, rval, module)
return process_hash_map(map_name, rval, module)
else:
raise ValueError("Function under @map must return a map")