mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Spelling stdlib/public/runtime (#42439)
* spelling: access Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: bridgeable Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: canonical Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: clazz Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: compatibility Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: language Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: necessary Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: platform Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: recursive Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: related Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: repeated Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: satisfy Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: that Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: the Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: verification Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
@@ -673,7 +673,7 @@ bool _swift_dictionaryDownCastConditionalIndirect(OpaqueValue *destination,
|
||||
#if SWIFT_OBJC_INTEROP
|
||||
// Helper to memoize bridging conformance data for a particular
|
||||
// Swift struct type. This is used to speed up the most common
|
||||
// ObjC->Swift bridging conversions by eliminating repeeated
|
||||
// ObjC->Swift bridging conversions by eliminating repeated
|
||||
// protocol conformance lookups.
|
||||
|
||||
// Currently used only for String, which may be the only
|
||||
@@ -2079,7 +2079,7 @@ tryCast(
|
||||
|| srcKind == MetadataKind::ObjCClassWrapper
|
||||
|| srcKind == MetadataKind::ForeignClass) {
|
||||
auto srcObject = getNonNullSrcObject(srcValue, srcType, destType);
|
||||
// If srcObject is null, we're in compability mode.
|
||||
// If srcObject is null, we're in compatibility mode.
|
||||
// But we can't lookup dynamic type for a null class reference, so
|
||||
// just skip this in that case.
|
||||
if (srcObject != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user