@@ -113,7 +113,12 @@ def bpf_map_lookup_elem_emitter(
113113 f"Map lookup expects exactly one argument (key), got { len (call .args )} "
114114 )
115115 key_ptr = get_or_create_ptr_from_arg (
116- func , compilation_context , call .args [0 ], builder , local_sym_tab
116+ func ,
117+ compilation_context ,
118+ call .args [0 ],
119+ builder ,
120+ local_sym_tab ,
121+ expected_type = ir .IntType (64 ),
117122 )
118123 map_void_ptr = builder .bitcast (map_ptr , ir .PointerType ())
119124
@@ -215,10 +220,20 @@ def bpf_map_update_elem_emitter(
215220 flags_arg = call .args [2 ] if len (call .args ) > 2 else None
216221
217222 key_ptr = get_or_create_ptr_from_arg (
218- func , compilation_context , key_arg , builder , local_sym_tab
223+ func ,
224+ compilation_context ,
225+ key_arg ,
226+ builder ,
227+ local_sym_tab ,
228+ expected_type = ir .IntType (64 ),
219229 )
220230 value_ptr = get_or_create_ptr_from_arg (
221- func , compilation_context , value_arg , builder , local_sym_tab
231+ func ,
232+ compilation_context ,
233+ value_arg ,
234+ builder ,
235+ local_sym_tab ,
236+ expected_type = ir .IntType (64 ),
222237 )
223238 flags_val = get_flags_val (flags_arg , builder , local_sym_tab )
224239
@@ -267,7 +282,12 @@ def bpf_map_delete_elem_emitter(
267282 f"Map delete expects exactly one argument (key), got { len (call .args )} "
268283 )
269284 key_ptr = get_or_create_ptr_from_arg (
270- 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 ),
271291 )
272292 map_void_ptr = builder .bitcast (map_ptr , ir .PointerType ())
273293
0 commit comments