mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-12-06 09:58:34 +00:00
Merge origin/master (#105) into fix/packet-pointer-arith
Four keep-both conflicts: PktPtrTy and byte_size added at the same spot in type_deducer, the allocation pass's type_deducer import, and neighbouring entries in test_config.toml and test_signedness_ir.py. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@ -263,6 +263,7 @@ def get_typed_operand(func, compilation_context, operand, builder, local_sym_tab
|
||||
vmlinux_result = VmlinuxHandlerRegistry.handle_name(operand.id)
|
||||
if vmlinux_result is not None:
|
||||
return vmlinux_result # (i64 constant, its C rank)
|
||||
raise SyntaxError(f"Undefined variable {operand.id}")
|
||||
elif isinstance(operand, ast.Constant):
|
||||
if isinstance(operand.value, (int, bool)):
|
||||
v = int(operand.value)
|
||||
|
||||
Reference in New Issue
Block a user