Skip to content

Commit f705a69

Browse files
authored
Merge pull request #70156 from mikeash/fix-findBridgeWitness
[Runtime] Fix findBridgeWitness when building for the shared cache.
2 parents 04316be + 3716df4 commit f705a69

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)