-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SIL] Fix incorrect handling of 'forwarding' when parsing SIL #38065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci test |
Could you also add a new test case that covers the changes? |
8f364aa
to
e231579
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@swift-ci test |
Sorry I forgot about the test. Currently I only add minimum amount of test that just covers SR-14814. Please let me know if I should add tests to cover every affected instruction types. Also, I though the test should come with the fix so I amend the changes with the original commit instead of making a new one. Please let me know if that's improper |
I think most important is that we have coverage of the line with the
When making edits to address review feedback, we usually just amend the commit and |
Build failed |
e231579
to
535aa9f
Compare
Make the test case more portable across 64/32-bit platforms. |
The `forwarding` directive should be optional for SIL instructions. However, the current SIL parser put it as a requirement when there is a comma follows after the main instruction components, which conflicts with debug info directives like `loc` or `scope`. This patch teaches the parser to treat `forwarding` as an optional directive. Resolves SR-14814.
535aa9f
to
007ec33
Compare
@swift-ci test |
1 similar comment
@swift-ci test |
The
forwarding
directive should be optional for SIL instructions. However, the current SIL parser put it as a requirement when there is a comma follows after the main instruction components, which conflicts with debug info directives (if there is any) likeloc
orscope
. This patch teaches the parser to treatforwarding
as an optional directive.Resolves SR-14814.