Skip to content

Commit 7370b6c

Browse files
committed
[SILGen] Squash a simple use of getSelfTypeInContext().
1 parent c982953 commit 7370b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenMaterializeForSet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ struct MaterializeForSetEmitter {
201201
ArrayRef<Substitution> witnessSubs) {
202202
auto *dc = witness->getDeclContext();
203203
Type selfInterfaceType = dc->getSelfInterfaceType();
204-
Type selfType = dc->getSelfTypeInContext();
204+
Type selfType = witness->computeSelfType()->getRValueInstanceType();
205205

206206
SILDeclRef constant(witness);
207207
auto constantInfo = SGM.Types.getConstantInfo(constant);

0 commit comments

Comments
 (0)