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

Fix TypeCheckingCache concurrency and candidate lifetime. #6444

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

csyonghe
Copy link
Collaborator

@csyonghe csyonghe commented Feb 24, 2025

If candidate.candidate.item.declRef.declRefBase is a genericapp declref created in previous session, it will be an invalid pointer, and as<DirectDeclRef>(candidate.candidate.item.declRef.declRefBase) will crash. We should instead use the decl to check if it is a generic decl ref.

@csyonghe csyonghe added the pr: non-breaking PRs without breaking changes label Feb 24, 2025
@csyonghe csyonghe requested a review from a team as a code owner February 24, 2025 18:51
@csyonghe csyonghe changed the title Fix TypeCheckingCache concurrency. Fix TypeCheckingCache concurrency and candidate lifetime. Feb 24, 2025
Copy link
Contributor

@kaizhangNV kaizhangNV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@csyonghe csyonghe merged commit 9e465c7 into shader-slang:master Feb 24, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants