aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CIR/CodeGen/CIRGenModule.cpp
diff options
context:
space:
mode:
authorMorris Hafner <mmha@users.noreply.github.com>2025-07-31 16:33:20 +0200
committerGitHub <noreply@github.com>2025-07-31 16:33:20 +0200
commit77f8a9115e73e1d32f121a362eb5340c180c620d (patch)
tree1503367b9d19631accb5ae50b4aa68677339e598 /clang/lib/CIR/CodeGen/CIRGenModule.cpp
parentc923d968b3a2cc4b813b584a1210fe906177de8a (diff)
downloadllvm-77f8a9115e73e1d32f121a362eb5340c180c620d.zip
llvm-77f8a9115e73e1d32f121a362eb5340c180c620d.tar.gz
llvm-77f8a9115e73e1d32f121a362eb5340c180c620d.tar.bz2
[CIR] Support more declarations without any codegen (#151076)
This patch adds or completes support for a couple of top level declaration types that don't emit any code: Most notably these include Concepts, static_assert and type aliases.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
-rw-r--r--clang/lib/CIR/CodeGen/CIRGenModule.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp
index 623b84f..01f365f 100644
--- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp
@@ -1331,8 +1331,14 @@ void CIRGenModule::emitTopLevelDecl(Decl *decl) {
break;
// No code generation needed.
- case Decl::UsingShadow:
+ case Decl::ClassTemplate:
+ case Decl::Concept:
+ case Decl::CXXDeductionGuide:
case Decl::Empty:
+ case Decl::FunctionTemplate:
+ case Decl::StaticAssert:
+ case Decl::TypeAliasTemplate:
+ case Decl::UsingShadow:
break;
case Decl::CXXConstructor: