Skip to content

Commit d0f7a9d

Browse files
committed
Add DEBUG log in case of no expected type or target is not a pointer
1 parent 0dea183 commit d0f7a9d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pythonbpf/helper/helper_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def get_or_create_ptr_from_arg(
113113
val = deref_to_depth(func, builder, val, val_depth - expected_depth)
114114
if val is None:
115115
raise ValueError("Failed to dereference pointer to expected depth")
116+
else:
117+
logger.debug("Expected Type not known / Not a pointer, skipping dereference")
116118

117119
ptr, temp_name = compilation_context.scratch_pool.get_next_temp(
118120
local_sym_tab, expected_type

0 commit comments

Comments
 (0)