diff options
author | Corentin Jabot <corentinjabot@gmail.com> | 2022-08-03 20:59:36 +0200 |
---|---|---|
committer | Corentin Jabot <corentinjabot@gmail.com> | 2022-08-03 21:00:29 +0200 |
commit | a274219600ea00c4406248acfbea113e29a8ead2 (patch) | |
tree | cbbffd3653ec77bae4ee8e2ee931a942d96a4fc3 /clang/lib/Sema/SemaInit.cpp | |
parent | 1f64f8bcabb65c9622386d7458e42ee33b2eb7dc (diff) | |
download | llvm-a274219600ea00c4406248acfbea113e29a8ead2.zip llvm-a274219600ea00c4406248acfbea113e29a8ead2.tar.gz llvm-a274219600ea00c4406248acfbea113e29a8ead2.tar.bz2 |
Revert "[Clang][C++20] Support capturing structured bindings in lambdas"
This reverts commit 44f2baa3804a62ca793f0ff3e43aa71cea91a795.
Breaks self builds and seems to have conformance issues.
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 737952b..d3b4548 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -7846,7 +7846,7 @@ void Sema::checkInitializerLifetime(const InitializedEntity &Entity, break; // FIXME: We can't easily tell apart an init-capture from a nested // capture of an init-capture. - const ValueDecl *VD = Elem.Capture->getCapturedVar(); + const VarDecl *VD = Elem.Capture->getCapturedVar(); Diag(Elem.Capture->getLocation(), diag::note_lambda_capture_initializer) << VD << VD->isInitCapture() << Elem.Capture->isExplicit() << (Elem.Capture->getCaptureKind() == LCK_ByRef) << VD |