[all-commits] [llvm/llvm-project] 56eb15: [Sema] Fix pointer-to-int-cast diagnostic for _Bool

mordante via All-commits all-commits at lists.llvm.org
Sat Feb 22 10:40:18 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 56eb15a1c71061043d50aa669407816bc08dfb5d
      https://github.com/llvm/llvm-project/commit/56eb15a1c71061043d50aa669407816bc08dfb5d
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2020-02-22 (Sat, 22 Feb 2020)

  Changed paths:
    M clang/lib/Sema/SemaCast.cpp
    M clang/test/Sema/MicrosoftExtensions.c
    M clang/test/Sema/cast.c
    M clang/test/SemaCXX/cstyle-cast.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list