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.
2 parents 531df99 + 4289953 commit 3cde386Copy full SHA for 3cde386
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