[clang] [CIR] Handle ImportDecl in emitTopLevelDecl (PR #221720)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 8 17:46:14 PDT 2026


================
@@ -2538,6 +2538,11 @@ void CIRGenModule::emitTopLevelDecl(Decl *decl) {
     emitDeclContext(cast<ExportDecl>(decl));
     break;
 
+  case Decl::Import:
+    // Nothing to emit for C++20 module imports. Initializers run through
----------------
andykaylor wrote:

Classic codegen has a lot of code here. Can you explain to me why you don't think CIR needs it?

https://github.com/llvm/llvm-project/pull/221720


More information about the cfe-commits mailing list