Skip to content

Conversation

@davezarzycki
Copy link
Contributor

Also make IRGenModule::getAddrOfTypeMetadata() more clear that a GEP is being forced and optional aliasing is involved rather than imply that full metadata always requires a GEP (which it does not).

@davezarzycki
Copy link
Contributor Author

@swift-ci please smoke test

@davezarzycki
Copy link
Contributor Author

For whatever it may be worth, I found the "adjustment index" differences between the two functions to be quite confusing for a while. I assumed that it was code duplication but I was wrong.

Also make `IRGenModule::getAddrOfTypeMetadata()` more clear that a GEP
is being forced and optional aliasing is involved rather than imply that
full metadata always requires a GEP (which it does not).
@davezarzycki
Copy link
Contributor Author

I can live with fullMetadata as the variable name. I just want the comments to get better in the latter function.

@swift-ci please smoke test

@jckarter
Copy link
Contributor

The other changes LGTM.

@davezarzycki davezarzycki merged commit b07ecb9 into swiftlang:master Aug 27, 2020
@davezarzycki davezarzycki deleted the pr33626 branch August 27, 2020 11:04
nkcsgexi pushed a commit to nkcsgexi/swift that referenced this pull request Aug 29, 2020
[IRGen] NFC: Simplify IRGenModule::defineTypeMetadata
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