[all-commits] [llvm/llvm-project] 1f06f4: PR44325 (and duplicates): don't issue -Wzero-as-nu...
Richard Smith via All-commits
all-commits at lists.llvm.org
Wed Feb 3 14:59:18 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f06f41993b6363e6b2c4f22a13488a3e687f31b
https://github.com/llvm/llvm-project/commit/1f06f41993b6363e6b2c4f22a13488a3e687f31b
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.
More information about the All-commits
mailing list