mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[IRGen] Adjust keypath component id for overriding witness methods.
This commit is contained in:
@@ -789,6 +789,9 @@ SILDeclRef SILDeclRef::getOverriddenWitnessTableEntry() const {
|
||||
|
||||
AbstractFunctionDecl *SILDeclRef::getOverriddenWitnessTableEntry(
|
||||
AbstractFunctionDecl *func) {
|
||||
if (!isa<ProtocolDecl>(func->getDeclContext()))
|
||||
return func;
|
||||
|
||||
AbstractFunctionDecl *bestOverridden = nullptr;
|
||||
|
||||
SmallVector<AbstractFunctionDecl *, 4> stack;
|
||||
|
||||
Reference in New Issue
Block a user