[PATCH] D42728: Add more warnings for implict conversions (e.g. double truncation to float).

Andrew V. Tischenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 13 04:05:23 PDT 2018


avt77 added a comment.

It seems I found a new problem here: with vector type it works just now (w/o this patch)

llvm/tools/clang/test/Sema/ext_vector_conversions.c:18:10: warning: implicit conversion loses integer precision: 'long long' to 'short4' (vector of 4 'short' values)

  vs4 += ll; // expected-warning {{implicit conversion loses integer precision}}
      ~~ ^~

Let's wait until I'll find and fix the issue. I'll warn you when it's ready for review.


https://reviews.llvm.org/D42728





More information about the llvm-commits mailing list