Skip to content

Commit 4261fcf

Browse files
authored
Merge pull request swiftlang#70157 from mikeash/fix-findBridgeWitness-5.10
[5.10][Runtime] Fix findBridgeWitness when building for the shared cache.
2 parents 6a29a89 + 2c8ba08 commit 4261fcf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stdlib/public/runtime/DynamicCast.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,8 @@ PROTOCOL_DESCR_SYM(s21_ObjectiveCBridgeable);
208208

209209
static const _ObjectiveCBridgeableWitnessTable *
210210
findBridgeWitness(const Metadata *T) {
211-
static const auto bridgeableProtocol
212-
= &PROTOCOL_DESCR_SYM(s21_ObjectiveCBridgeable);
213-
auto w = swift_conformsToProtocolCommon(T, bridgeableProtocol);
211+
auto w = swift_conformsToProtocolCommon(
212+
T, &PROTOCOL_DESCR_SYM(s21_ObjectiveCBridgeable));
214213
return reinterpret_cast<const _ObjectiveCBridgeableWitnessTable *>(w);
215214
}
216215

0 commit comments

Comments
 (0)