We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d850f4 commit ab71275Copy full SHA for ab71275
1 file changed
pythonbpf/expr_pass.py
@@ -129,6 +129,14 @@ def _handle_ctypes_call(
129
return val
130
131
132
+def _get_base_type(ir_type):
133
+ """Get the base type for pointer types."""
134
+ cur_type = ir_type
135
+ while isinstance(cur_type, ir.PointerType):
136
+ cur_type = cur_type.pointee
137
+ return cur_type
138
+
139
140
def _normalize_types(builder, lhs, rhs):
141
"""Normalize types for comparison."""
142
0 commit comments