File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1257,7 +1257,7 @@ optimizeBridgedObjCToSwiftCast(SILInstruction *Inst,
1257
1257
if (!BridgedFunc)
1258
1258
return nullptr ;
1259
1259
1260
- CanType CanBridgedTy ( BridgedTargetTy);
1260
+ CanType CanBridgedTy = BridgedTargetTy-> getCanonicalType ( );
1261
1261
SILType SILBridgedTy = SILType::getPrimitiveObjectType (CanBridgedTy);
1262
1262
1263
1263
SILBuilderWithScope Builder (Inst);
@@ -1735,8 +1735,8 @@ optimizeBridgedCasts(SILInstruction *Inst,
1735
1735
if (!BridgedSourceTy)
1736
1736
return nullptr ;
1737
1737
1738
- CanType CanBridgedTargetTy ( BridgedTargetTy);
1739
- CanType CanBridgedSourceTy ( BridgedSourceTy);
1738
+ CanType CanBridgedTargetTy = BridgedTargetTy-> getCanonicalType ( );
1739
+ CanType CanBridgedSourceTy = BridgedSourceTy-> getCanonicalType ( );
1740
1740
1741
1741
if (CanBridgedSourceTy == source && CanBridgedTargetTy == target) {
1742
1742
// Both source and target type are ObjC types.
You can’t perform that action at this time.
0 commit comments