Skip to content

Conversation

@andrewmd5
Copy link

Resolves #7317

info.canChangeState = true;
info.isTopMostRuntime = true;
} else if (target->base == GET_STATE) {
info.canChangeState = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is wrong - it will undo a previous true, forgetting that another call can change the state.

That is, these flags start as false, and should only ever change to true.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense; this branch is necessary though to prevent falling through to the unreachable, so I’ll add a condition to the outer scope.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test. The existing ones are in ./test/lit/passes/asyncify*, so a new one alongside them makes sense, unless you find one that this can fit naturally inside.

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.

undefined asyncify_get_state

2 participants