aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ASTCommon.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2022-10-24 12:20:36 -0700
committerErich Keane <erich.keane@intel.com>2022-10-24 12:36:54 -0700
commit975740bf8db92e054b95a7cedd646d7bc3f74fed (patch)
treec6d0ebbc3a77934fd0564ef760d4456d5c953186 /clang/lib/Serialization/ASTCommon.cpp
parent18066b52c2e2676438676cb069cf882e609288fe (diff)
downloadllvm-975740bf8db92e054b95a7cedd646d7bc3f74fed.zip
llvm-975740bf8db92e054b95a7cedd646d7bc3f74fed.tar.gz
llvm-975740bf8db92e054b95a7cedd646d7bc3f74fed.tar.bz2
"Reapply "GH58368: Correct concept checking in a lambda defined in concept""
This reverts commit cecc9a92cfca71c1b6c2a35c5e302ab649496d11. The problem ended up being how we were handling the lambda-context in code generation: we were assuming any decl context here would be a named-decl, but that isn't the case. Instead, we just replace it with the concept's owning context. Differential Revision: https://reviews.llvm.org/D136451
Diffstat (limited to 'clang/lib/Serialization/ASTCommon.cpp')
-rw-r--r--clang/lib/Serialization/ASTCommon.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTCommon.cpp b/clang/lib/Serialization/ASTCommon.cpp
index 53e4c88..152037d 100644
--- a/clang/lib/Serialization/ASTCommon.cpp
+++ b/clang/lib/Serialization/ASTCommon.cpp
@@ -430,6 +430,7 @@ bool serialization::isRedeclarableDeclKind(unsigned Kind) {
case Decl::Decomposition:
case Decl::Binding:
case Decl::Concept:
+ case Decl::ImplicitConceptSpecialization:
case Decl::LifetimeExtendedTemporary:
case Decl::RequiresExprBody:
case Decl::UnresolvedUsingIfExists: