diff options
author | Andy Kaylor <akaylor@nvidia.com> | 2025-04-18 12:52:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-18 12:52:51 -0700 |
commit | daf3c985f75bae2f4f01594be2fbc02f953e7b06 (patch) | |
tree | d3b833079b2ac0986ff1942d6629a03ce1ab6197 /clang/lib/CIR/CodeGen/CIRGenModule.cpp | |
parent | 03b3620538bcd2514ecf49ab03573014b3346672 (diff) | |
download | llvm-daf3c985f75bae2f4f01594be2fbc02f953e7b06.zip llvm-daf3c985f75bae2f4f01594be2fbc02f953e7b06.tar.gz llvm-daf3c985f75bae2f4f01594be2fbc02f953e7b06.tar.bz2 |
[CIR] Upstream support for typedef and type aliases (#136335)
Nothing is actually needed in ClangIR to support typedef and type
aliases, but the Decl kinds need to be explicitly ignored in the
emitDecl handlers to avoid hitting the default NYI errors. This change
does that and adds tests.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
-rw-r--r-- | clang/lib/CIR/CodeGen/CIRGenModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp index 1b50454..3b13d495 100644 --- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp @@ -618,6 +618,8 @@ void CIRGenModule::emitTopLevelDecl(Decl *decl) { emitGlobalOpenACCDecl(cast<OpenACCDeclareDecl>(decl)); break; + case Decl::Typedef: + case Decl::TypeAlias: // using foo = bar; [C++11] case Decl::Record: case Decl::CXXRecord: assert(!cir::MissingFeatures::generateDebugInfo()); |