File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1683,14 +1683,16 @@ namespace {
1683
1683
}
1684
1684
1685
1685
void addUnderlyingTypeAndConformances () {
1686
- auto sig = O->getOpaqueInterfaceGenericSignature ()
1687
- ? O->getOpaqueInterfaceGenericSignature ()->getCanonicalSignature ()
1688
- : CanGenericSignature ();
1686
+ auto sig = O->getOpaqueInterfaceGenericSignature ();
1689
1687
auto underlyingType = Type (O->getUnderlyingInterfaceType ())
1690
1688
.subst (*O->getUnderlyingTypeSubstitutions ())
1691
1689
->getCanonicalType (sig);
1690
+
1691
+ auto contextSig = O->getGenericSignature ()
1692
+ ? O->getGenericSignature ()->getCanonicalSignature ()
1693
+ : CanGenericSignature ();
1692
1694
1693
- B.addRelativeAddress (IGM.getTypeRef (underlyingType, sig ,
1695
+ B.addRelativeAddress (IGM.getTypeRef (underlyingType, contextSig ,
1694
1696
MangledTypeRefRole::Metadata).first );
1695
1697
1696
1698
auto opaqueType = O->getDeclaredInterfaceType ()
@@ -1704,7 +1706,7 @@ namespace {
1704
1706
1705
1707
auto witnessTableRef = IGM.emitWitnessTableRefString (
1706
1708
underlyingType, underlyingConformance,
1707
- O-> getGenericSignature () ,
1709
+ contextSig ,
1708
1710
/* setLowBit*/ false );
1709
1711
B.addRelativeAddress (witnessTableRef);
1710
1712
}
You can’t perform that action at this time.
0 commit comments