Skip to content

Commit

Permalink
ObjCBridgeMemo is only used on ObjC-supporting platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
tbkka committed Aug 26, 2020
1 parent a2cd863 commit 2acaa1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stdlib/public/runtime/DynamicCast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ bool _swift_dictionaryDownCastConditionalIndirect(OpaqueValue *destination,
const void *sourceKeyHashable,
const void *targetKeyHashable);

#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
Expand Down Expand Up @@ -691,6 +692,7 @@ struct ObjCBridgeMemo {
destBridgeWitness, targetBridgedType);
}
};
#endif

static DynamicCastResult
tryCastToAnyHashable(
Expand Down

0 comments on commit 2acaa1a

Please sign in to comment.