[all-commits] [llvm/llvm-project] 431335: [clang] __is_trivially_equality_comparable for typ...
Amirreza Ashouri via All-commits
all-commits at lists.llvm.org
Wed Oct 11 08:12:29 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4313351c135cc32cdf3b3fc3e44cf57f100a96ef
https://github.com/llvm/llvm-project/commit/4313351c135cc32cdf3b3fc3e44cf57f100a96ef
Author: Amirreza Ashouri <ar.ashouri999 at gmail.com>
Date: 2023-10-11 (Wed, 11 Oct 2023)
Changed paths:
M clang/include/clang/AST/DeclCXX.h
M clang/lib/AST/DeclCXX.cpp
M clang/lib/AST/Type.cpp
M clang/lib/CodeGen/CodeGenFunction.cpp
M clang/lib/Sema/SemaLambda.cpp
M clang/test/SemaCXX/type-traits.cpp
Log Message:
-----------
[clang] __is_trivially_equality_comparable for types containing lambdas (#68506)
Lambdas (closure types) are trivially equality-comparable iff they are
non-capturing, because non-capturing lambdas are convertible to function
pointers: if (lam1 == lam2) compiles, then lam1 and lam2 must have
the same type, and be always-equal, and be empty.
More information about the All-commits
mailing list