Skip to content

[NFC] OSSACanonicalizeOwned: Simplify Def definition. #79205

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 2 commits into from
Feb 7, 2025

Conversation

nate-chandler
Copy link
Contributor

It's sufficient just to have a struct with a kind and a value. There aren't any cases where the payload's original type benefits from being statically preserved--they're only ever obtained as SILValues. Keep the type safety by way of constructors.

There's no longer a DenseMap of Defs, so no corresponding DenseMapInfo.
It's sufficient just to have a struct with a kind and a value.  There
aren't any cases where the payload's original type benefits from being
statically preserved--they're only ever obtained as `SILValue`s.  Keep
the type safety by way of constructors.
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler nate-chandler marked this pull request as ready for review February 7, 2025 16:14
@nate-chandler nate-chandler merged commit 23a049c into swiftlang:main Feb 7, 2025
5 checks passed
@nate-chandler nate-chandler deleted the nfc/20250206/1 branch February 7, 2025 16:14
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.

1 participant