Skip to content

Commit 0626dc7

Browse files
authored
Merge pull request #29993 from compnerd/conform-to-your-conformance
IRGen: correct the typecast (NFC)
2 parents 7666a6e + c187b5e commit 0626dc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IRGen/Linking.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,8 @@ DeclContext *LinkEntity::getDeclContextForEmission() const {
988988
case Kind::ReflectionAssociatedTypeDescriptor:
989989
case Kind::ProtocolWitnessTableLazyCacheVariable:
990990
case Kind::ProtocolWitnessTableLazyAccessFunction:
991-
return getRootProtocolConformance()->getDeclContext();
992-
991+
return getProtocolConformance()->getDeclContext();
992+
993993
case Kind::TypeMetadata: {
994994
auto ty = getType();
995995
// Only fully concrete nominal type metadata gets emitted eagerly.

0 commit comments

Comments
 (0)