Skip to content

[Demangler] Fix OldRemangler to cope with single argument functions. #37997

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

Merged
merged 3 commits into from
Jul 28, 2021

Conversation

al45tair
Copy link
Contributor

The Demangler can sometimes output ArgumentTuples containing a single argument
without placing that argument inside a Tuple node. OldRemangler failed to take
account of this and either crashed or failed with an assertion failure depending
on whether assertions were enabled or not.

rdar://63678072

The Demangler can sometimes output ArgumentTuples containing a single argument
without placing that argument inside a Tuple node.  OldRemangler failed to take
account of this and either crashed or failed with an assertion failure depending
on whether assertions were enabled or not.

rdar://63678072
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair al45tair requested a review from DougGregor June 21, 2021 08:26
@slavapestov
Copy link
Contributor

Should we instead fix the Demangler to always wrap arguments in a tuple?

@al45tair
Copy link
Contributor Author

I assume the reason we didn't is that it avoids allocating another Node.

@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test macOS platform

@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair al45tair requested a review from eeckstein July 1, 2021 12:39
@al45tair
Copy link
Contributor Author

al45tair commented Jul 7, 2021

@swift-ci Please smoke test

@al45tair al45tair requested a review from tbkka July 13, 2021 16:27
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test macOS platform

@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair al45tair merged commit 95be0d6 into swiftlang:main Jul 28, 2021
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.

3 participants