mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Frontend] Make the module trace emission more robust.
✔ More informative error messages in case of crashes. ✔ Handling and documenting different cases. ✔ Test cases for different cases. ✔ Make SDKDependencies.swift pass again.
This commit is contained in:
@@ -113,6 +113,7 @@ protected:
|
||||
auto error =
|
||||
loader->findModuleFilesInDirectory({moduleName, SourceLoc()}, tempDir,
|
||||
"Library.swiftmodule", "Library.swiftdoc", "Library.swiftsourceinfo",
|
||||
/*ModuleInterfacePath*/nullptr,
|
||||
&moduleBuffer, &moduleDocBuffer, &moduleSourceInfoBuffer);
|
||||
ASSERT_FALSE(error);
|
||||
ASSERT_FALSE(diags.hadAnyError());
|
||||
|
||||
Reference in New Issue
Block a user