[PATCH] D72231: [Sema] Adds the pointer-to-int-cast diagnostic

Nathan Chancellor via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 18 14:53:17 PST 2020


nathanchance added a comment.

In D72231#1879347 <https://reviews.llvm.org/D72231#1879347>, @rjmccall wrote:

> Warning about casting to an enum seems clearly correct and in scope for this warning.  Warning about casting to `_Bool` seems clearly incorrect and should not be warned about at all.


Fair enough. There are 97 unique instances of the enum variant of the warning across the various configs that I test so I will start sending patches to add `uintptr_t` casts to silence it.

https://gist.github.com/nathanchance/2c2892e9e4b411fa78770ed3624812b4


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72231





More information about the cfe-commits mailing list