diff options
author | Erich Keane <erich.keane@intel.com> | 2022-10-24 10:15:41 -0700 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2022-10-24 10:21:22 -0700 |
commit | 52930162870fee52d0d9c07c5d66e5dce32b08e8 (patch) | |
tree | fd7476c77d9f6d6a5985f989f5ccaf95b452dd4b /clang/lib/Sema/SemaLambda.cpp | |
parent | da4e0f7ac58711ddeaf86943ae82c1928e26801f (diff) | |
download | llvm-52930162870fee52d0d9c07c5d66e5dce32b08e8.zip llvm-52930162870fee52d0d9c07c5d66e5dce32b08e8.tar.gz llvm-52930162870fee52d0d9c07c5d66e5dce32b08e8.tar.bz2 |
Revert "GH58368: Correct concept checking in a lambda defined in concept"
This reverts commit b7c922607c5ba93db8b893d4ba461052af8317b5.
This seems to cause some problems with some modules related things,
which makes me think I should have updated the version-major in
ast-bit-codes? Going to revert to confirm this was a problem, then
change that and re-try a commit.
Diffstat (limited to 'clang/lib/Sema/SemaLambda.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLambda.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/lib/Sema/SemaLambda.cpp b/clang/lib/Sema/SemaLambda.cpp index a22708d..2143b81 100644 --- a/clang/lib/Sema/SemaLambda.cpp +++ b/clang/lib/Sema/SemaLambda.cpp @@ -282,8 +282,7 @@ Sema::getCurrentMangleNumberContext(const DeclContext *DC) { DataMember, StaticDataMember, InlineVariable, - VariableTemplate, - Concept + VariableTemplate } Kind = Normal; // Default arguments of member function parameters that appear in a class @@ -308,8 +307,6 @@ Sema::getCurrentMangleNumberContext(const DeclContext *DC) { } } else if (isa<FieldDecl>(ManglingContextDecl)) { Kind = DataMember; - } else if (isa<ImplicitConceptSpecializationDecl>(ManglingContextDecl)) { - Kind = Concept; } } @@ -333,11 +330,6 @@ Sema::getCurrentMangleNumberContext(const DeclContext *DC) { return std::make_tuple(nullptr, nullptr); } - case Concept: - // Concept definitions aren't code generated and thus aren't mangled, - // however the ManglingContextDecl is important for the purposes of - // re-forming the template argument list of the lambda for constraint - // evaluation. case StaticDataMember: // -- the initializers of nonspecialized static members of template classes if (!IsInNonspecializedTemplate) |