-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Fix missing musttail for dynamic replacement calls. #37592
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
Fix missing musttail for dynamic replacement calls. #37592
Conversation
@swift-ci test |
Build failed |
Build failed |
Fixes rdar://78284346. (Found when trying to land musttail verification. :D)
159ec9c
to
a044644
Compare
@swift-ci test |
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.
lgtm. Thank you!
Build failed |
@swift-ci test macOS |
Revert in #37645 |
Reverting was the wrong thing; the test should be x-failed on Windows. #37646 |
When we make a tail call from swifttailcc → swifttailcc, the call should be marked musttail even when dynamic replacement is involved. However, this wasn't handled earlier, leading to an assertion failure when I tried to turn on musttail verification. (See #36805 (comment))
Fixes rdar://78284346 .