Skip to content

Commit 1721782

Browse files
SILGen: fix compile failure introduced by GenericSignature refactoring
1 parent 8afa3f6 commit 1721782

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/SILGen/SILGenExpr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2730,7 +2730,7 @@ static SILFunction *getOrCreateKeyPathGetter(SILGenModule &SGM,
27302730
auto param = GenericTypeParamType::get(0, 0, SGM.getASTContext());
27312731
auto sig = GenericSignature::get(param, { });
27322732
genericSig = CanGenericSignature(sig);
2733-
genericEnv = sig->getGenericEnvironment();
2733+
genericEnv = sig.getGenericEnvironment();
27342734
}
27352735

27362736
// Build the signature of the thunk as expected by the keypath runtime.
@@ -2881,7 +2881,7 @@ static SILFunction *getOrCreateKeyPathSetter(SILGenModule &SGM,
28812881
auto param = GenericTypeParamType::get(0, 0, SGM.getASTContext());
28822882
auto sig = GenericSignature::get(param, { });
28832883
genericSig = CanGenericSignature(sig);
2884-
genericEnv = sig->getGenericEnvironment();
2884+
genericEnv = sig.getGenericEnvironment();
28852885
}
28862886

28872887
// Build the signature of the thunk as expected by the keypath runtime.
@@ -3064,7 +3064,7 @@ getOrCreateKeyPathEqualsAndHash(SILGenModule &SGM,
30643064
auto param = GenericTypeParamType::get(0, 0, SGM.getASTContext());
30653065
auto sig = GenericSignature::get(param, { });
30663066
genericSig = CanGenericSignature(sig);
3067-
genericEnv = sig->getGenericEnvironment();
3067+
genericEnv = sig.getGenericEnvironment();
30683068
}
30693069

30703070
auto &C = SGM.getASTContext();

0 commit comments

Comments
 (0)