[all-commits] [llvm/llvm-project] 994501: [Clang] Fix evaluation context of lambdas appearin...
Corentin Jabot via All-commits
all-commits at lists.llvm.org
Thu Jul 3 10:59:39 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 994501abe75c2a2d244785c0d0cf177858ac6eaf
https://github.com/llvm/llvm-project/commit/994501abe75c2a2d244785c0d0cf177858ac6eaf
Author: Corentin Jabot <corentinjabot at gmail.com>
Date: 2025-07-03 (Thu, 03 Jul 2025)
Changed paths:
M clang/lib/Sema/SemaExpr.cpp
M clang/lib/Sema/TreeTransform.h
M clang/test/CXX/stmt.stmt/stmt.select/stmt.if/p2.cpp
Log Message:
-----------
[Clang] Fix evaluation context of lambdas appearing in discarded statements (#146857)
Fixes 2 bugs reported in #146063
- The body of a lambda appearing in a discarded statement was sometimes
considered discarded itself
- A lambda conversion operator that was not odr-used was sometimes not
defined even if it was needed
Fixes #146063
---------
Co-authored-by: Timm Baeder <tbaeder at redhat.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list