mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Init sz in get_or_create_ptr_from_arg
This commit is contained in:
@ -98,6 +98,7 @@ def get_or_create_ptr_from_arg(
|
|||||||
"""Extract or create pointer from the call arguments."""
|
"""Extract or create pointer from the call arguments."""
|
||||||
|
|
||||||
logger.info(f"Getting pointer from arg: {ast.dump(arg)}")
|
logger.info(f"Getting pointer from arg: {ast.dump(arg)}")
|
||||||
|
sz = None
|
||||||
if isinstance(arg, ast.Name):
|
if isinstance(arg, ast.Name):
|
||||||
# Stack space is already allocated
|
# Stack space is already allocated
|
||||||
ptr = get_var_ptr_from_name(arg.id, local_sym_tab)
|
ptr = get_var_ptr_from_name(arg.id, local_sym_tab)
|
||||||
|
|||||||
Reference in New Issue
Block a user