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:
Pragyansh Chaturvedi
2026-09-24 19:29:07 +05:30
parent 532dc0f808
commit 9cd8e1037a
4 changed files with 17 additions and 19 deletions

View File

@ -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.
"""