Skip to content

Commit da8a495

Browse files
committed
Fix handle_cond for new symtab convention
1 parent ee03ac0 commit da8a495

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonbpf/functions_pass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@ def handle_cond(func, module, builder, cond, local_sym_tab, map_sym_tab):
196196
return None
197197
elif isinstance(cond, ast.Compare):
198198
lhs = eval_expr(func, module, builder, cond.left,
199-
local_sym_tab, map_sym_tab)
199+
local_sym_tab, map_sym_tab)[0]
200200
if len(cond.ops) != 1 or len(cond.comparators) != 1:
201201
print("Unsupported complex comparison")
202202
return None
203203
rhs = eval_expr(func, module, builder,
204-
cond.comparators[0], local_sym_tab, map_sym_tab)
204+
cond.comparators[0], local_sym_tab, map_sym_tab)[0]
205205
op = cond.ops[0]
206206

207207
if lhs.type != rhs.type:

0 commit comments

Comments
 (0)