Skip to content

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Dec 5, 2018

rdar://problem/46472361

@mikeash
Copy link
Contributor Author

mikeash commented Dec 5, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Dec 5, 2018

Build failed
Swift Test OS X Platform
Git Sha - cb350ca16fa3206017c42ce0652af8d39ff33cc4

@mikeash mikeash force-pushed the anyhashable-to-enum-fix branch from cb350ca to 2fad867 Compare December 5, 2018 19:40
@mikeash
Copy link
Contributor Author

mikeash commented Dec 5, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Dec 5, 2018

Build failed
Swift Test OS X Platform
Git Sha - cb350ca16fa3206017c42ce0652af8d39ff33cc4

@swift-ci
Copy link
Contributor

swift-ci commented Dec 5, 2018

Build failed
Swift Test Linux Platform
Git Sha - cb350ca16fa3206017c42ce0652af8d39ff33cc4

@mikeash mikeash requested a review from rjmccall December 5, 2018 20:42
Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

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

LGTM.

@@ -2437,6 +2437,15 @@ static bool swift_dynamicCastImpl(OpaqueValue *dest, OpaqueValue *src,
cast<StructMetadata>(targetType),
flags);
}

// AnyHashable casts for enums.
if (targetType->getKind() == MetadataKind::Enum) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is just else.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I was trying to be explicit but it ended up a bit awkward. The comment alone is sufficient.

@mikeash mikeash force-pushed the anyhashable-to-enum-fix branch from 2fad867 to 6f7143b Compare December 6, 2018 15:33
@mikeash
Copy link
Contributor Author

mikeash commented Dec 6, 2018

@swift-ci please smoke test and merge

1 similar comment
@mikeash
Copy link
Contributor Author

mikeash commented Dec 6, 2018

@swift-ci please smoke test and merge

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