From 1239d1c35fb2c32aa858bb8140de0fde17c57f63 Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Sat, 4 Oct 2025 02:09:11 +0530 Subject: [PATCH] Fix handle_binary_ops calls in functions_pass --- pythonbpf/functions_pass.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pythonbpf/functions_pass.py b/pythonbpf/functions_pass.py index 38355ef..019344c 100644 --- a/pythonbpf/functions_pass.py +++ b/pythonbpf/functions_pass.py @@ -233,7 +233,7 @@ def handle_assign( else: logger.info("Unsupported assignment call function type") elif isinstance(rval, ast.BinOp): - handle_binary_op(rval, module, builder, var_name, local_sym_tab) + handle_binary_op(rval, builder, var_name, local_sym_tab) else: logger.info("Unsupported assignment value type") @@ -406,9 +406,7 @@ def process_stmt( did_return = True elif isinstance(stmt.value.args[0], ast.BinOp): # TODO: Should be routed through eval_expr - val = handle_binary_op( - stmt.value.args[0], module, builder, None, local_sym_tab - ) + val = handle_binary_op(stmt.value.args[0], builder, None, local_sym_tab) if val is None: raise ValueError("Failed to evaluate return expression") if val[1] != ret_type: