We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i<=s.size()
Clang fails to DCE using idx <= len in following code.
idx <= len
void do_checks(const int* begin, const size_t len){ size_t idx = 0; const auto end = begin + len; for (const int* it = begin; it!=end; ++it, ++idx){ if (idx <= len){ // Do something useful } else { throw 5; } } }
godbolt
Also related: #52851
The text was updated successfully, but these errors were encountered:
enumerate()
No branches or pull requests
Clang fails to DCE using
idx <= len
in following code.godbolt
Also related: #52851
The text was updated successfully, but these errors were encountered: