We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9f6454 commit a71e3d9Copy full SHA for a71e3d9
lib/IRGen/GenProto.cpp
@@ -1750,11 +1750,11 @@ class AccessorConformanceInfo : public ConformanceInfo {
1750
(void)entry;
1751
#endif
1752
1753
- auto typeWitness = Conformance.getTypeWitness(assocType);
1754
- if (langOpts.hasFeature(Feature::EmbeddedExistentials) &&
1755
- SILWT->isSpecialized()) {
+ Type typeWitness;
+ if (SILWT->isSpecialized())
1756
typeWitness = entry.getAssociatedTypeWitness().Witness;
1757
- }
+ else
+ typeWitness = Conformance.getTypeWitness(assocType);
1758
1759
if (IGM.Context.LangOpts.hasFeature(Feature::EmbeddedExistentials)) {
1760
// In Embedded Swift associated type witness point to the metadata.
0 commit comments