[Sema] Fix pointer-to-int-cast diagnostic for _Bool
authorMark de Wever <koraq@xs4all.nl>
Sat, 22 Feb 2020 09:37:41 +0000 (10:37 +0100)
committerMark de Wever <koraq@xs4all.nl>
Sat, 22 Feb 2020 18:39:49 +0000 (19:39 +0100)
commit56eb15a1c71061043d50aa669407816bc08dfb5d
tree986dd16ce885402f090e4d3978ac26d54acfe2be
parent7b44f0428af4000372af5f016995c032a959d17e
[Sema] Fix pointer-to-int-cast diagnostic for _Bool

The diagnostic added in D72231 also shows a diagnostic when casting to a
_Bool. This is unwanted. This patch removes the diagnostic for _Bool types.

Differential Revision: https://reviews.llvm.org/D74860
clang/lib/Sema/SemaCast.cpp
clang/test/Sema/MicrosoftExtensions.c
clang/test/Sema/cast.c
clang/test/SemaCXX/cstyle-cast.cpp