diff options
author | Andy Kaylor <akaylor@nvidia.com> | 2025-06-05 16:50:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-05 16:50:36 -0700 |
commit | 6c1ca07586196c5a693f720d35a9a4be6e76d7d2 (patch) | |
tree | af75a5118f9edea9fd73e7e385969dc5e5d7cb19 /clang/lib/CIR/CodeGen/CIRGenModule.cpp | |
parent | cd585864c0bbbd74ed2a2b1ccc191eed4d1c8f90 (diff) | |
download | llvm-6c1ca07586196c5a693f720d35a9a4be6e76d7d2.zip llvm-6c1ca07586196c5a693f720d35a9a4be6e76d7d2.tar.gz llvm-6c1ca07586196c5a693f720d35a9a4be6e76d7d2.tar.bz2 |
[CIR] Add decl case for template specialization (#143029)
This change adds the switch case to allow template specialization to
pass through emitTopLevelDecl without issuing an error.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
-rw-r--r-- | clang/lib/CIR/CodeGen/CIRGenModule.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp index 1c89452..ce3c57e 100644 --- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp @@ -1140,7 +1140,6 @@ void CIRGenModule::emitTopLevelDecl(Decl *decl) { case Decl::Typedef: case Decl::TypeAlias: // using foo = bar; [C++11] case Decl::Record: - case Decl::CXXRecord: assert(!cir::MissingFeatures::generateDebugInfo()); break; @@ -1153,6 +1152,12 @@ void CIRGenModule::emitTopLevelDecl(Decl *decl) { case Decl::Namespace: emitDeclContext(Decl::castToDeclContext(decl)); break; + + case Decl::ClassTemplateSpecialization: + case Decl::CXXRecord: + assert(!cir::MissingFeatures::generateDebugInfo()); + assert(!cir::MissingFeatures::cxxRecordStaticMembers()); + break; } } |