aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2024-03-09 01:18:17 +0100
committerGitHub <noreply@github.com>2024-03-09 01:18:17 +0100
commitdc567a2ec61d07e89902f73c1bdd4106dc071f3f (patch)
treea118cf5eb13cf610f29587a16b09ba5f7c0866cd /clang/lib/CodeGen/CodeGenFunction.cpp
parent4d323e404d43526ad8263769f00aace9db2e57c5 (diff)
downloadllvm-dc567a2ec61d07e89902f73c1bdd4106dc071f3f.zip
llvm-dc567a2ec61d07e89902f73c1bdd4106dc071f3f.tar.gz
llvm-dc567a2ec61d07e89902f73c1bdd4106dc071f3f.tar.bz2
[clang] Fix crash when declaring invalid lambda member (#74110)
In valid code, there should only be a very specific set of members in a lambda definition. If the user tries to define something inside the lambda class, this assumption is violated and causes an assertion error. This can be fixed by checking whether the members are valid, and if not, ignore that the class members are potentially unexpected. I've come across this while working on implementing lambdas in C++03.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions