Skip to content

irverify: Catch invalid use of Goto{IfNot, Node}, ReturnNode#49397

Merged
staticfloat merged 1 commit intomasterfrom
kf/verifycontrol
Apr 18, 2023
Merged

irverify: Catch invalid use of Goto{IfNot, Node}, ReturnNode#49397
staticfloat merged 1 commit intomasterfrom
kf/verifycontrol

Conversation

@Keno
Copy link
Copy Markdown
Member

@Keno Keno commented Apr 18, 2023

Referencing control flow statements in value position is illegal and will cause crashes in compilation or interpretation. Add this to the verifier, so that downstream tooling that checks for valid IR can catch this before it gets handed off to the compiler.

Referencing control flow statements in value position is illegal
and will cause crashes in compilation or interpretation. Add this
to the verifier, so that downstream tooling that checks for valid
IR can catch this before it gets handed off to the compiler.
@staticfloat staticfloat merged commit 1512d6f into master Apr 18, 2023
@staticfloat staticfloat deleted the kf/verifycontrol branch April 18, 2023 04:20
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.

2 participants