[all-commits] [llvm/llvm-project] 7f20c6: [Clang] [Sema] Always rebuild `this` if captured b...
Sirraide via All-commits
all-commits at lists.llvm.org
Tue Aug 19 15:38:11 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7f20c6c29ec6f4eed7e1e3b23f938d7ced238902
https://github.com/llvm/llvm-project/commit/7f20c6c29ec6f4eed7e1e3b23f938d7ced238902
Author: Sirraide <aeternalmail at gmail.com>
Date: 2025-08-20 (Wed, 20 Aug 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/TreeTransform.h
M clang/test/CodeGenCXX/cxx2b-deducing-this.cpp
Log Message:
-----------
[Clang] [Sema] Always rebuild `this` if captured by value in a lambda with a dependent explicit object parameter (#154276)
We have a flag that tracks whether a `CXXThisExpr` refers to a `*this`
capture in a lambda with a dependent explicit object parameter; this is
to mark it and member accesses involving it as dependent because there
is no other way to track that (DREs have a similar flag); when
instantiating the lambda, we need to always rebuild the `CXXThisExpr` to
potentially clear that flag if the explicit object parameter is no
longer dependent.
Fixes #154054.
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