HomeFreeBSD

Merge commit f5f3d5d6534f from llvm-project (by Qizhi Hu):

Description

Merge commit f5f3d5d6534f from llvm-project (by Qizhi Hu):

[Clang][Sema] Fix a crash in lambda instantiation (#85565)

Fix https://github.com/llvm/llvm-project/issues/85343
When build lambda expression in lambda instantiation, `ThisType` is
required in `Sema::CheckCXXThisCapture` to build `this` capture. Set
`this` type by import `Sema::CXXThisScopeRAII` and it will be used later
in lambda expression transformation.

Co-authored-by: huqizhi <836744285@qq.com>

This fixes 'Assertion failed: (!isNull() && "Cannot retrieve a NULL type
pointer"), function getCommonPtr" when building the x11-wm/wayfire port.

PR: 276104
MFC after: 1 month

Details

Provenance
dimAuthored on Mar 21 2024, 8:50 PM
Parents
rGce4f1f49e036: Revert commit 6255157d24e2 from llvm-project (by Dimitry Andric):
Branches
Unknown
Tags
Unknown