Sema: Keep public module name in ModuleDecl

This commit is contained in:
Alexis Laferrière
2024-08-20 13:26:33 -07:00
parent 37521ad21d
commit 214da85183
5 changed files with 43 additions and 0 deletions

View File

@@ -953,6 +953,8 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
M.setSerializePackageEnabled();
if (!loadedModuleFile->getModuleABIName().empty())
M.setABIName(Ctx.getIdentifier(loadedModuleFile->getModuleABIName()));
if (!loadedModuleFile->getPublicModuleName().empty())
M.setPublicModuleName(Ctx.getIdentifier(loadedModuleFile->getPublicModuleName()));
if (loadedModuleFile->isConcurrencyChecked())
M.setIsConcurrencyChecked();
if (loadedModuleFile->hasCxxInteroperability()) {