Skip to content

Revert "IRGen: Leave frame pointers off SIL functions marked [thunk]." #27488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

aschwaighofer
Copy link
Contributor

This reverts commit b3ac66a.

This is problematic when [thunk] functions get inlined into and the
function from which we inline expects a framepointer.

Specifically, _swift_os_log_return_address() reads the framepointer.

rdar://55852225

This reverts commit b3ac66a.

This is problematic when [thunk] functions get inlined into and the
function from which we inline expects a framepointer.

Specifically, _swift_os_log_return_address() reads the framepointer.

rdar://55852225
@aschwaighofer aschwaighofer requested a review from jckarter October 2, 2019 13:57
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@jckarter
Copy link
Contributor

jckarter commented Oct 2, 2019

LGTM. I wonder, would it make sense to drop the [thunk] attribute when the inliner inlines into a thunk?

@aschwaighofer aschwaighofer merged commit 2b790a9 into swiftlang:master Oct 2, 2019
@aschwaighofer
Copy link
Contributor Author

When resurrecting this patch we would also have to make sure that llvm does not inline into the thunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants