Skip to content

Commit 1239d1c

Browse files
committed
Fix handle_binary_ops calls in functions_pass
1 parent f41a9cc commit 1239d1c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pythonbpf/functions_pass.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def handle_assign(
233233
else:
234234
logger.info("Unsupported assignment call function type")
235235
elif isinstance(rval, ast.BinOp):
236-
handle_binary_op(rval, module, builder, var_name, local_sym_tab)
236+
handle_binary_op(rval, builder, var_name, local_sym_tab)
237237
else:
238238
logger.info("Unsupported assignment value type")
239239

@@ -406,9 +406,7 @@ def process_stmt(
406406
did_return = True
407407
elif isinstance(stmt.value.args[0], ast.BinOp):
408408
# TODO: Should be routed through eval_expr
409-
val = handle_binary_op(
410-
stmt.value.args[0], module, builder, None, local_sym_tab
411-
)
409+
val = handle_binary_op(stmt.value.args[0], builder, None, local_sym_tab)
412410
if val is None:
413411
raise ValueError("Failed to evaluate return expression")
414412
if val[1] != ret_type:

0 commit comments

Comments
 (0)