[PATCH] D64666: [Sema] Enable -Wimplicit-int-float-conversion for integral to floating point precision loss
Ziang Wan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 2 15:28:37 PDT 2019
ziangwan added a comment.
In D64666#1612947 <https://reviews.llvm.org/D64666#1612947>, @mgorny wrote:
> This change seems to have broken libc++ tests when run with trunk clang:
> and more in http://lab.llvm.org:8011/builders/netbsd-amd64/builds/21221
The warning is actually correct here. This implicit integral to float conversion loses precision. Is it the intended behavior of the code? If so, we can simply add an explicit type cast to silence the warning.
CHANGES SINCE LAST ACTION
More information about the cfe-commits