Call eval_expr properly within get_operand_value

This commit is contained in:
Pragyansh Chaturvedi
2025-10-11 03:21:09 +05:30
parent 91a3fe140d
commit c9bbe1ffd8
2 changed files with 42 additions and 10 deletions

View File

@ -402,7 +402,16 @@ def eval_expr(
elif isinstance(expr, ast.BinOp):
from pythonbpf.binary_ops import handle_binary_op
return handle_binary_op(func, expr, builder, None, local_sym_tab)
return handle_binary_op(
func,
module,
expr,
builder,
None,
local_sym_tab,
map_sym_tab,
structs_sym_tab,
)
elif isinstance(expr, ast.Compare):
return _handle_compare(
func, module, builder, expr, local_sym_tab, map_sym_tab, structs_sym_tab