[clang] [RFC][C++20][Modules] Relax ODR check in unnamed modules (PR #111160)

Dmitry Polukhin via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 9 01:12:55 PDT 2024


================
@@ -2527,7 +2527,7 @@ class BitsUnpacker {
 
 inline bool shouldSkipCheckingODR(const Decl *D) {
   return D->getASTContext().getLangOpts().SkipODRCheckInGMF &&
-         D->isFromGlobalModule();
+         (D->isFromGlobalModule() || !D->isInNamedModule());
----------------
dmpolukhin wrote:

Oops, forgot to push last commit :(
Please take another look.

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


More information about the cfe-commits mailing list