[all-commits] [llvm/llvm-project] 678c25: PR44325 (and duplicates): don't issue -Wzero-as-nu...

Richard Smith via All-commits all-commits at lists.llvm.org
Wed Feb 3 15:00:21 PST 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 678c259d277135ef32861887a8ac8618deba5f24
      https://github.com/llvm/llvm-project/commit/678c259d277135ef32861887a8ac8618deba5f24
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M clang/lib/Sema/Sema.cpp
    M clang/test/SemaCXX/cxx2a-three-way-comparison.cpp

  Log Message:
  -----------
  PR44325 (and duplicates): don't issue -Wzero-as-null-pointer-constant
when rewriting 'a < b' as '(a <=> b) < 0'.

It's pretty common for comparison category types to use a pointer or
pointer-to-member type as their '0' parameter.

(cherry picked from commit 1f06f41993b6363e6b2c4f22a13488a3e687f31b)




More information about the All-commits mailing list