================ @@ -2527,7 +2527,7 @@ class BitsUnpacker { inline bool shouldSkipCheckingODR(const Decl *D) { return D->getASTContext().getLangOpts().SkipODRCheckInGMF && - D->isFromGlobalModule(); + (D->isFromGlobalModule() || !D->isInNamedModule()); ---------------- ChuanqiXu9 wrote:
This may not be wanted. It will skip the ODR checks for the original clang modules. If we really want it, we should use `D->isFromHeaderUnits()` https://github.com/llvm/llvm-project/pull/111160 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits