Skip to content

Commit 0dea183

Browse files
r41k0uCopilot
andcommitted
Pass expected_type to bpf_map_delete_elem key arg
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7cdb9cb commit 0dea183

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pythonbpf/helper/bpf_helper_handler.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,12 @@ def bpf_map_delete_elem_emitter(
282282
f"Map delete expects exactly one argument (key), got {len(call.args)}"
283283
)
284284
key_ptr = get_or_create_ptr_from_arg(
285-
func, compilation_context, call.args[0], builder, local_sym_tab
285+
func,
286+
compilation_context,
287+
call.args[0],
288+
builder,
289+
local_sym_tab,
290+
expected_type=ir.IntType(64),
286291
)
287292
map_void_ptr = builder.bitcast(map_ptr, ir.PointerType())
288293

0 commit comments

Comments
 (0)