Skip to content

[spectec] Fix prose of the rule instr_const#2161

Open
f52985 wants to merge 1 commit intomainfrom
const.prose.fix
Open

[spectec] Fix prose of the rule instr_const#2161
f52985 wants to merge 1 commit intomainfrom
const.prose.fix

Conversation

@f52985
Copy link
Copy Markdown
Collaborator

@f52985 f52985 commented May 8, 2026

This PR fixes the prose for the instr_const rule, where the variable val was incorrectly used instead of instr, resolving #2144.

The root cause was that the rule unification logic only considered the first two rules (CONST and VCONST) and incorrectly assumed the unified variable type should be val. It now considers all cases and correctly generates the unified variable with type instr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant