lebedev.ri added a comment.

In D48866#1527506 <https://reviews.llvm.org/D48866#1527506>, @steakhal wrote:

> The problem with the `-Wcast-align` is that it will only fire for C-style 
> bitcast expressions, not for `reinterpret_cast` ones. example 
> <https://godbolt.org/z/cm3S96>
>  Does anyone know why is that behavior?


Because `reinterpret_cast` is by definition allowed to perform these casts, so 
it is assumed that no warning should be issued.
This part of the check i look forward to.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D48866/new/

https://reviews.llvm.org/D48866



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to