[PATCH] D144011: [clang]Fix warning for signed conversion
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 14 09:57:28 PST 2023
yaxunl added a comment.
In D144011#4126553 <https://reviews.llvm.org/D144011#4126553>, @shafik wrote:
> If I look at the clang docs for Wconversion <https://clang.llvm.org/docs/DiagnosticsReference.html#wconversion> I see it includes `-Wshorten-64-to-32` which I believe this is a case of. I think maybe the warning needs a better warning for this case?
This is done for x86_64 on linux, where long long and long are both 64bit. https://godbolt.org/z/hd3qWW5jj
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144011/new/
https://reviews.llvm.org/D144011
More information about the cfe-commits
mailing list