mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-12-06 09:58:34 +00:00
Core: Review nits on the signedness branch
- A global's descriptor is built from the loaded value, not from None. - get_operand_value, the [0] wrapper over get_typed_operand, had no callers left; removed with its export. - infer_int_type's map branch names the map's declared value type for what it is (value_ctype), says that the key argument plays no part, and applies only to lookup: update and delete return a status, not a value of the map's type. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@ -203,7 +203,7 @@ def handle_aug_assign(func, compilation_context, builder, stmt, local_sym_tab):
|
||||
compiler walks the tree the user wrote, and nodes invented mid-codegen are
|
||||
invisible to the passes that already ran and carry no source locations.
|
||||
Semantic agreement with `x = x op v` comes from sharing the value-level
|
||||
helpers instead — the RHS goes through get_operand_value like any other
|
||||
helpers instead — the RHS goes through get_typed_operand like any other
|
||||
read, and the operator table is apply_binop, the same one binary-op
|
||||
evaluation uses.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user