Init sz in get_or_create_ptr_from_arg

This commit is contained in:
Pragyansh Chaturvedi
2025-11-07 19:03:21 +05:30
parent b5a3494cc6
commit 6c85b248ce

View File

@ -98,6 +98,7 @@ def get_or_create_ptr_from_arg(
"""Extract or create pointer from the call arguments."""
logger.info(f"Getting pointer from arg: {ast.dump(arg)}")
sz = None
if isinstance(arg, ast.Name):
# Stack space is already allocated
ptr = get_var_ptr_from_name(arg.id, local_sym_tab)