[clang] [CIR] Skip function bodies imported from other named modules (PR #239686)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 09:58:05 PST 2026


================
@@ -1834,12 +1786,14 @@ bool CIRGenModule::shouldEmitFunction(GlobalDecl gd) {
     return false;
 
   // We don't import function bodies from other named module units since that
-  // behavior may break ABI compatibility of the current unit.
+  // behavior may break ABI compatibility of the current unit.  However, a
----------------
erichkeane wrote:

The comments here don't match anymore.  JUST copy/paste 5105->5122 from CodeGenModule.cpp, and update the 'names' of things correctly. 

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


More information about the cfe-commits mailing list