10000 C++: Robustify the IR by ensuring that a write side effect never has more than 10 types by MathiasVP · Pull Request #15313 · github/codeql · GitHub
[go: up one dir, main page]

Skip to content

C++: Robustify the IR by ensuring that a write side effect never has more than 10 types #15313

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

Conversation

MathiasVP
Copy link
Contributor

For some reason, after we merged #12125 we suddenly saw a few (templated) member functions belonging to thousands of (templated) classes.

If a member call belongs to many thousands of classes, the write side effect for the qualifier associated with the call has thousands of types (as the type of the write side effect is computed from the type of the qualifier).

This PR limits the impact of such a problem by requiring the set of types to be less than 10. I've picked the number 10 quite arbitrarily as I've seen 6 projects with types (even before we merged #12125).

@github-actions github-actions bot added the C++ label Jan 12, 2024
@MathiasVP
Copy link
Contributor Author

No, wait. That's definitely not how we want to do this. (It causes malformed IR!)

@MathiasVP MathiasVP closed this Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3375
1 participant
0