Skip to content
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

[SR-14919] Warn on creating a recursive always inline function #57266

Open
typesanitizer opened this issue Jul 14, 2021 · 0 comments
Open

[SR-14919] Warn on creating a recursive always inline function #57266

typesanitizer opened this issue Jul 14, 2021 · 0 comments
Labels
compiler The Swift compiler in itself improvement

Comments

@typesanitizer
Copy link

Previous ID SR-14919
Radar None
Original Reporter @typesanitizer
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement
Assignee None
Priority Medium

md5: c9da0b2f8b2a2fa89fee15be912edb8b

Issue Description:

David Smith was confused at some benchmarks he was working on, and then realized an issue was that he had an always inline function which was recursive, so it didn't get inlined at all. This seems like a programmer error – it's quite likely to be unintentional. I think we should warn if you have a recursive function (or more generally, a function in a SCC) which is marked always inline.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself improvement
Projects
None yet
Development

No branches or pull requests

1 participant