Details
- Reviewers
erichkeane aaron.ballman - Group Reviewers
Restricted Project - Commits
- rG54aca3f33f63: [clang][NFC] Use a more accurate size type in the new operation
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
here: https://github.com/llvm/llvm-project/issues/63116
Sorry. I don't know how to building a backend where PointerWidth and SizeTy width are not the same. so I can't add the test... can you tell me how to do it?
Presumably this is with a custom downstream 'target' here? I don't see how we'd do that either. However, I think I've seen basically this same patch up for review about a month and a half ago that I think we did a few round of reviews on? Or am I misremembering this?
This needs to be submitted for review with 'context' as well (-U999999 when generating the patch).
I think this ends up being a 'fine' change, I don't have a problem with it, and it seems more 'accurate' to make it the size type. So 1 nit, but else I think this is going to be fine.
clang/lib/Sema/SemaExprCXX.cpp | ||
---|---|---|
2646 | Since you're capturing the size type above in SizeTy, just use it here too. |
I'm not usually in favor of changes without test coverage, but this is effectively an NFC change as far as Clang is concerned so I'm okay with the changes. That said, the patch title seems wrong (there's no crash being fixed by this within Clang, otherwise we could test the changes), and a summary should be added justifying what's changing and why. Erich's nit should be addressed as well.
It has been updated with diff -U999999, thanks
clang/lib/Sema/SemaExprCXX.cpp | ||
---|---|---|
2646 | Yes, corrected it, thanks |
LGTM! Do you need someone to commit this on your behalf? If so, what name and email address would you like used for patch attribution?
Since you're capturing the size type above in SizeTy, just use it here too.