We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ebdeb commit 4289953Copy full SHA for 4289953
stdlib/public/runtime/SwiftObject.mm
@@ -609,7 +609,10 @@ static bool isBridgeObjectTaggedPointer(void *object) {
609
// bit set.
610
SWIFT_MUSTTAIL return objcRetainAndReturn(object);
611
#else
612
- return swift_retain(static_cast<HeapObject *>(objectRef));
+ // No tail call here. When !SWIFT_OBJC_INTEROP, the value of objectRef may be
613
+ // different from that of object, e.g. on Linux ARM64.
614
+ swift_retain(static_cast<HeapObject *>(objectRef));
615
+ return object;
616
#endif
617
}
618
0 commit comments