Skip to content

Conversation

eeckstein
Copy link
Contributor

In theory, the analysis invalidation notifications should assure that every function has a CallerAnalysis::FunctionInfo in funcInfos. But it's not unlikely that we are missing some of those notifications. We got some not-reproducible crash reports because of missing function infos in CallerAnalysis. With this change the analysis accepts missing function infos and does the right thing if such an info is missing.

In the long term we should replace CallerAnalysis by FunctionUses, anyway.

rdar://99653954

In theory, the analysis invalidation notifications should assure that every function has a CallerAnalysis::FunctionInfo in `funcInfos`.
But it's not unlikely that we are missing some of those notifications.
We got some not-reproducible crash reports because of missing function infos in CallerAnalysis.
With this change the analysis accepts missing function infos and does the right thing if such an info is missing.

In the long term we should replace CallerAnalysis by FunctionUses, anyway.

rdar://99653954
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor Author

@swift-ci benchmark

@eeckstein eeckstein merged commit 1321b58 into swiftlang:main Sep 8, 2022
@eeckstein eeckstein deleted the fix-caller-analysis branch September 8, 2022 20:39
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.

1 participant