diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2024-11-21 13:03:43 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-11-21 17:46:18 +0000 | 
| commit | 415efcecd8b80f68e76376ef2b854cb6f5c84b5a (patch) | |
| tree | d6b65b05ed94545d28b215d517258bf722abbbab /contrib/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 7dfaf238562cfb9b8f2fe9a025220fd7147fedfe (diff) | |
| parent | f65bf063bcac0dcdca7d3b7b865e29c837566543 (diff) | |
Diffstat (limited to 'contrib/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | contrib/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp b/contrib/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp index 151505baf38d..2a5d5f9083ae 100644 --- a/contrib/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp +++ b/contrib/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp @@ -7080,8 +7080,8 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {      // For C++ standard modules we are done - we will call the module      // initializer for imported modules, and that will likewise call those for      // any imports it has. -    if (CXX20ModuleInits && Import->getImportedOwningModule() && -        !Import->getImportedOwningModule()->isModuleMapModule()) +    if (CXX20ModuleInits && Import->getImportedModule() && +        Import->getImportedModule()->isNamedModule())        break;      // For clang C++ module map modules the initializers for sub-modules are  | 
