Merge pull request #60283 from zoecarver/frt-static-extension

[cxx-interop] Fix static extensions on foreign reference types.
This commit is contained in:
Zoe Carver
2022-07-28 17:42:34 -07:00
committed by GitHub
2 changed files with 13 additions and 0 deletions

View File

@@ -752,6 +752,9 @@ bool SILFunction::hasDynamicSelfMetadata() const {
selfTy = dynamicSelfTy.getSelfType();
}
if (selfTy.isForeignReferenceType())
return false;
return !!selfTy.getClassOrBoundGenericClass();
}