[SILGen] Squash a simple use of getSelfTypeInContext().

This commit is contained in:
Doug Gregor
2016-12-02 09:51:31 -08:00
parent c98295357c
commit 7370b6c8a4

View File

@@ -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);