From 0bfb3855b6a282c1fe28529f405eb0102628bb2d Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Mon, 6 Oct 2025 05:10:22 +0530 Subject: [PATCH] Remove dead code from _handle_ctypes_call --- pythonbpf/expr_pass.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pythonbpf/expr_pass.py b/pythonbpf/expr_pass.py index bcdb018..56d047e 100644 --- a/pythonbpf/expr_pass.py +++ b/pythonbpf/expr_pass.py @@ -119,9 +119,7 @@ def _handle_ctypes_call( return None call_type = expr.func.id expected_type = ctypes_to_ir(call_type) - if expected_type is None: - logger.info(f"Unsupported ctypes type: {call_type}") - return None + if val[1] != expected_type: # NOTE: We are only considering casting to and from int types for now if isinstance(val[1], ir.IntType) and isinstance(expected_type, ir.IntType):