Skip to content

Commit 98f262a

Browse files
committed
Add BoolOp handling stub in eval_expr
1 parent d2ff530 commit 98f262a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pythonbpf/expr_pass.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,18 @@ def _handle_unary_op(
315315
return result, ir.IntType(1)
316316

317317

318+
def _handle_boolean_op(
319+
func,
320+
module,
321+
builder,
322+
expr: ast.BoolOp,
323+
local_sym_tab,
324+
map_sym_tab,
325+
structs_sym_tab=None,
326+
):
327+
pass
328+
329+
318330
def eval_expr(
319331
func,
320332
module,
@@ -403,6 +415,10 @@ def eval_expr(
403415
return _handle_unary_op(
404416
func, module, builder, expr, local_sym_tab, map_sym_tab, structs_sym_tab
405417
)
418+
elif isinstance(expr, ast.BoolOp):
419+
return _handle_boolean_op(
420+
func, module, builder, expr, local_sym_tab, map_sym_tab, structs_sym_tab
421+
)
406422
logger.info("Unsupported expression evaluation")
407423
return None
408424

0 commit comments

Comments
 (0)