This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen][ObjC] Mark calls to objc_unsafeClaimAutoreleasedReturnValue as notail on x86-64
ClosedPublic

Authored by ahatanak on Jul 24 2020, 9:37 AM.

Details

Summary

This is needed because the epilogue code inserted before tail calls on x86-64 breaks the handshake between the caller and callee.

Calls to objc_retainAutoreleasedReturnValue used to have the same problem, which was fixed in https://reviews.llvm.org/D59656.

rdar://problem/66029552

Diff Detail

Event Timeline

ahatanak created this revision.Jul 24 2020, 9:37 AM
This revision is now accepted and ready to land.Aug 3 2020, 10:33 AM