mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-12-06 09:58:34 +00:00
Add DEBUG log in case of no expected type or target is not a pointer
This commit is contained in:
@ -113,6 +113,8 @@ def get_or_create_ptr_from_arg(
|
||||
val = deref_to_depth(func, builder, val, val_depth - expected_depth)
|
||||
if val is None:
|
||||
raise ValueError("Failed to dereference pointer to expected depth")
|
||||
else:
|
||||
logger.debug("Expected Type not known / Not a pointer, skipping dereference")
|
||||
|
||||
ptr, temp_name = compilation_context.scratch_pool.get_next_temp(
|
||||
local_sym_tab, expected_type
|
||||
|
||||
Reference in New Issue
Block a user