-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Implement IsValueInlinedInExistentialContainer #40053
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
Implement IsValueInlinedInExistentialContainer #40053
Conversation
@swift-ci smoke test |
|
LGTM. If you feel like getting fancier with the return value, I've started using |
@@ -690,6 +690,28 @@ class MetadataReader { | |||
RemoteAddress(StartOfValue)); | |||
} | |||
|
|||
/// Given a known-opaque existential, discover if it's value is inlined in |
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.
typo: it's -> its
/// Given a known-opaque existential, discover if it's value is inlined in | ||
// the existential container. | ||
llvm::Optional<bool> | ||
IsValueInlinedInExistentialContainer(RemoteAddress ExistentialAddress) { |
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.
Function names begin with a lowercase letter in Swift
c6866a2
to
0eb09d9
Compare
@swift-ci smoke test |
@@ -690,6 +690,28 @@ class MetadataReader { | |||
RemoteAddress(StartOfValue)); | |||
} | |||
|
|||
/// Given a known-opaque existential, discover if its value is inlined in | |||
// the existential container. |
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.
We usually use /// comments for the entire doxygen comment. I'm not sure if this is actually necessary, but at least it looks more consistent.
0eb09d9
to
1336d2b
Compare
@swift-ci smoke test |
Separate the code that finds if an existential container to its own function, so it can be used by LLDB.