We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 189526d commit 9becee8Copy full SHA for 9becee8
1 file changed
pythonbpf/assign_pass.py
@@ -181,7 +181,7 @@ def handle_variable_assignment(
181
expected_ptr_type = ir.PointerType(struct_info.ir_type)
182
183
# Check if var_type matches the expected pointer type
184
- if isinstance(var_type, ir.PointerType):
+ if isinstance(var_type, ir.PointerType) and var_type == expected_ptr_type:
185
# val is already the correct pointer type from inttoptr/bitcast
186
builder.store(val, var_ptr)
187
logger.info(f"Assigned user-defined struct pointer cast to {var_name}")
0 commit comments