Skip to content

Commit ef3c774

Browse files
committed
Temporarily disable an optimization to avoid some crashes.
We are seeing some crashes due to this optimization where a type contains a single retainable pointer. Temporarily disable it while we get to the root cause. rdar://problem/39629937
1 parent ed37534 commit ef3c774

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/IRGen/GenValueWitness.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,8 @@ getAddrOfKnownValueWitnessTable(IRGenModule &IGM, CanType type) {
11441144
witnessSurrogate = C.TheUnknownObjectType;
11451145
break;
11461146
case ReferenceCounting::Bridge:
1147-
witnessSurrogate = C.TheBridgeObjectType;
1147+
// FIXME: Temporarily disable this optimization (rdar://problem/39697747)
1148+
// witnessSurrogate = C.TheBridgeObjectType;
11481149
break;
11491150
case ReferenceCounting::Error:
11501151
break;

0 commit comments

Comments
 (0)