mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #27635 from varungandhi-apple/vg-robustify-module-trace-emission
Make module trace emission more robust.
This commit is contained in:
@@ -931,8 +931,8 @@ bool CompilerInstance::parsePartialModulesAndLibraryFiles(
|
||||
// Parse all the partial modules first.
|
||||
for (auto &PM : PartialModules) {
|
||||
assert(PM.ModuleBuffer);
|
||||
if (!SML->loadAST(*MainModule, SourceLoc(), std::move(PM.ModuleBuffer),
|
||||
std::move(PM.ModuleDocBuffer),
|
||||
if (!SML->loadAST(*MainModule, SourceLoc(), /*moduleInterfacePath*/"",
|
||||
std::move(PM.ModuleBuffer), std::move(PM.ModuleDocBuffer),
|
||||
std::move(PM.ModuleSourceInfoBuffer), /*isFramework*/false,
|
||||
/*treatAsPartialModule*/true))
|
||||
hadLoadError = true;
|
||||
|
||||
Reference in New Issue
Block a user