From cd7d2c3bf89c9f0e6b7467d9d5ac87ddc829975c Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Mon, 14 Apr 2025 14:40:19 -0700 Subject: [CIR] Upstream minimal support for structure types (#135105) This change adds minimal support for structure types. To keep the initial change small, only incomplete declarations are being supported in this patch. More complete support will follow. --- clang/lib/CIR/CodeGen/CIRGenModule.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp') diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp index fd11523..ddcdc0d 100644 --- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp @@ -589,6 +589,11 @@ void CIRGenModule::emitTopLevelDecl(Decl *decl) { case Decl::OpenACCDeclare: emitGlobalOpenACCDecl(cast(decl)); break; + + case Decl::Record: + case Decl::CXXRecord: + assert(!cir::MissingFeatures::generateDebugInfo()); + break; } } -- cgit v1.1