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 c982953 commit 7370b6cCopy full SHA for 7370b6c
lib/SILGen/SILGenMaterializeForSet.cpp
@@ -201,7 +201,7 @@ struct MaterializeForSetEmitter {
201
ArrayRef<Substitution> witnessSubs) {
202
auto *dc = witness->getDeclContext();
203
Type selfInterfaceType = dc->getSelfInterfaceType();
204
- Type selfType = dc->getSelfTypeInContext();
+ Type selfType = witness->computeSelfType()->getRValueInstanceType();
205
206
SILDeclRef constant(witness);
207
auto constantInfo = SGM.Types.getConstantInfo(constant);
0 commit comments