Skip to content

Conversation

@kavon
Copy link
Member

@kavon kavon commented Nov 11, 2025

irgen::addGenericRequirements will later filter out Copyable and Escapable requirements, so this field's count isn't accurate if it's using the pre-filtered number.

This should in theory only affect the metadata emission for keypaths, specifically, the caller IRGenModule::getAddrOfKeyPathPattern.

`irgen::addGenericRequirements` will later filter out Copyable
and Escapable requirements, so this field's count isn't accurate
if it's using the pre-filtered number.

This should in theory only affect the metadata emission for keypaths,
specifically, the caller `IRGenModule::getAddrOfKeyPathPattern`.

// Generic requirements
irgen::addGenericRequirements(*this, fields, signature);
irgen::addGenericRequirements(*this, fields, signature, reqs, inverses);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do the other callers of the three-argument overload need to be audited to see if they need the same fix? Maybe it should be removed?

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.

2 participants