Files
swift-mirror/include/swift/Runtime/HeapObject.h
Mike Ash 90cfaa1485 [Runtime] Tail call swift_retain in ObjC retain implementation.
The implementation of the ObjC -retain method saved a local variable and returned that after calling swift_retain, which forced it to create a stack frame. swift_retain returns the object being retained, so we can take advantage of that to have the compiler emit a tail call to it instead.
2025-06-17 16:03:10 -04:00

39 KiB