mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #60283 from zoecarver/frt-static-extension
[cxx-interop] Fix static extensions on foreign reference types.
This commit is contained in:
@@ -752,6 +752,9 @@ bool SILFunction::hasDynamicSelfMetadata() const {
|
||||
selfTy = dynamicSelfTy.getSelfType();
|
||||
}
|
||||
|
||||
if (selfTy.isForeignReferenceType())
|
||||
return false;
|
||||
|
||||
return !!selfTy.getClassOrBoundGenericClass();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user