@@ -603,12 +603,13 @@ static bool isNonNative_unTagged_bridgeObject(void *object) {
603
603
#if SWIFT_OBJC_INTEROP
604
604
if (!isNonNative_unTagged_bridgeObject (object)) {
605
605
swift_retain (static_cast <HeapObject *>(objectRef));
606
- return static_cast <HeapObject *>(objectRef) ;
606
+ return object ;
607
607
}
608
- return objc_retain (static_cast <id >(objectRef));
608
+ objc_retain (static_cast <id >(objectRef));
609
+ return object;
609
610
#else
610
611
swift_retain (static_cast <HeapObject *>(objectRef));
611
- return static_cast <HeapObject *>(objectRef) ;
612
+ return object ;
612
613
#endif
613
614
}
614
615
@@ -624,12 +625,13 @@ static bool isNonNative_unTagged_bridgeObject(void *object) {
624
625
#if SWIFT_OBJC_INTEROP
625
626
if (!isNonNative_unTagged_bridgeObject (object)) {
626
627
swift_nonatomic_retain (static_cast <HeapObject *>(objectRef));
627
- return static_cast <HeapObject *>(objectRef) ;
628
+ return object ;
628
629
}
629
- return objc_retain (static_cast <id >(objectRef));
630
+ objc_retain (static_cast <id >(objectRef));
631
+ return object;
630
632
#else
631
633
swift_nonatomic_retain (static_cast <HeapObject *>(objectRef));
632
- return static_cast <HeapObject *>(objectRef) ;
634
+ return object ;
633
635
#endif
634
636
}
635
637
@@ -680,14 +682,14 @@ static bool isNonNative_unTagged_bridgeObject(void *object) {
680
682
void *objc_ret = nullptr ;
681
683
if (!isNonNative_unTagged_bridgeObject (object)) {
682
684
swift_retain_n (static_cast <HeapObject *>(objectRef), n);
683
- return static_cast <HeapObject *>(objectRef) ;
685
+ return object ;
684
686
}
685
687
for (int i = 0 ;i < n; ++i)
686
688
objc_ret = objc_retain (static_cast <id >(objectRef));
687
- return objc_ret ;
689
+ return object ;
688
690
#else
689
691
swift_retain_n (static_cast <HeapObject *>(objectRef), n);
690
- return static_cast <HeapObject *>(objectRef) ;
692
+ return object ;
691
693
#endif
692
694
}
693
695
@@ -721,14 +723,14 @@ static bool isNonNative_unTagged_bridgeObject(void *object) {
721
723
void *objc_ret = nullptr ;
722
724
if (!isNonNative_unTagged_bridgeObject (object)) {
723
725
swift_nonatomic_retain_n (static_cast <HeapObject *>(objectRef), n);
724
- return static_cast <HeapObject *>(objectRef) ;
726
+ return object ;
725
727
}
726
728
for (int i = 0 ;i < n; ++i)
727
729
objc_ret = objc_retain (static_cast <id >(objectRef));
728
- return objc_ret ;
730
+ return object ;
729
731
#else
730
732
swift_nonatomic_retain_n (static_cast <HeapObject *>(objectRef), n);
731
- return static_cast <HeapObject *>(objectRef) ;
733
+ return object ;
732
734
#endif
733
735
}
734
736
0 commit comments