mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SILGen] Squash a simple use of getSelfTypeInContext().
This commit is contained in:
@@ -201,7 +201,7 @@ public:
|
||||
ArrayRef<Substitution> witnessSubs) {
|
||||
auto *dc = witness->getDeclContext();
|
||||
Type selfInterfaceType = dc->getSelfInterfaceType();
|
||||
Type selfType = dc->getSelfTypeInContext();
|
||||
Type selfType = witness->computeSelfType()->getRValueInstanceType();
|
||||
|
||||
SILDeclRef constant(witness);
|
||||
auto constantInfo = SGM.Types.getConstantInfo(constant);
|
||||
|
||||
Reference in New Issue
Block a user