Skip to content

Commit

Permalink
[prespecialized metadata] Allow existential arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
nate-chandler committed May 22, 2020
1 parent 18d4f63 commit ccf6209
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/IRGen/MetadataRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,12 +770,11 @@ bool irgen::isNominalGenericContextTypeMetadataAccessTrivial(
return genericArgument && genericArgument->isGenericContext() &&
(protocols.size() > 0);
};
auto isExistential = [&]() { return argument->isExistentialType(); };
auto metadataAccessIsTrivial = [&]() {
return irgen::isCompleteTypeMetadataStaticallyAddressable(IGM,
argument->getCanonicalType());
};
return !isGenericWithoutPrespecializedConformance() && !isExistential() &&
return !isGenericWithoutPrespecializedConformance() &&
metadataAccessIsTrivial() && witnessTablesAreReferenceable();
});
return allWitnessTablesAreReferenceable
Expand Down

0 comments on commit ccf6209

Please sign in to comment.