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

[clang-tidy][modernize-loop-convert]check isDependentSizedArrayType #69062

Merged
merged 3 commits into from
Oct 16, 2023
Merged

[clang-tidy][modernize-loop-convert]check isDependentSizedArrayType #69062

merged 3 commits into from
Oct 16, 2023

Conversation

HerrCai0907
Copy link
Contributor

@HerrCai0907 HerrCai0907 commented Oct 14, 2023

We cannot get element size only when type is DependentSizedArrayType.
So it should be treated as not cheap to copy and use element ref in loop.

Fixes: #68975

Copy link
Member

@PiotrZSL PiotrZSL left a comment

Choose a reason for hiding this comment

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

LGTM, please provide more information in pull request description before merging instead of just title.

@PiotrZSL
Copy link
Member

Please also fix CI first, because looks like it fails on windows.

@HerrCai0907 HerrCai0907 merged commit 5ae5af1 into llvm:main Oct 16, 2023
3 checks passed
@HerrCai0907 HerrCai0907 deleted the fix/68975 branch December 27, 2023 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[clang-tidy] Segmentation fault during check modernize-loop-convert
3 participants