Skip to content

Fixes an invalid assert in No Payload Enum's collectArchetypeMetadata: the type itself might contain an Archetype. We need to check that it is not an Archetype itself #13257

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 1 commit into from
Dec 5, 2017

Conversation

shajrawi
Copy link

@shajrawi shajrawi commented Dec 4, 2017

radar rdar://problem/35831517

@shajrawi
Copy link
Author

shajrawi commented Dec 4, 2017

@swift-ci Please smoke test and merge

@@ -945,7 +945,7 @@ namespace {
llvm::MapVector<CanType, llvm::Value *> &typeToMetadataVec,
SILType T) const override {
auto canType = T.getSwiftRValueType();
assert(!canType->hasArchetype() &&
assert(!canType->getWithoutSpecifierType()->is<ArchetypeType>() &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have an example where getWithoutSpecifierType() is not a no-op?

…: the type itself might contain an Archetype. We need to check that it is not an Archetype itself
@shajrawi
Copy link
Author

shajrawi commented Dec 5, 2017

@swift-ci Please smoke test and merge

@swift-ci swift-ci merged commit 0a17342 into swiftlang:master Dec 5, 2017
@shajrawi shajrawi deleted the fix_outline_assert branch December 5, 2017 01:47
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