Add DEBUG log in case of no expected type or target is not a pointer

This commit is contained in:
Pragyansh Chaturvedi
2026-06-01 11:57:48 +05:30
parent 0dea1836df
commit d0f7a9dcec

View File

@ -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