Skip to content

guard identifier offsets when transforms add identifiers - #1086

Open
pagran wants to merge 1 commit into
burrowers:masterfrom
pagran:ctrlflow-position-guard
Open

guard identifier offsets when transforms add identifiers#1086
pagran wants to merge 1 commit into
burrowers:masterfrom
pagran:ctrlflow-position-guard

Conversation

@pagran

@pagran pagran commented Aug 27, 2026

Copy link
Copy Markdown
Member

No description provided.

ctrlflow/ssa2ast can add identifiers with no entry in origCallOffsets, so
the printed source may hold more of them than were collected from the AST;
indexing by identIndex then panicked out of range. Skip such identifiers,
which carry no original position to remap.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant