Merge pull request #60610 from xymus/serial-root-message

[Serialization] Suggest a solution path for modified swiftmodules causing deserialization failures
This commit is contained in:
Alexis Laferrière
2022-08-18 14:49:26 -07:00
committed by GitHub
3 changed files with 8 additions and 0 deletions

View File

@@ -564,6 +564,8 @@ void ModuleFileSharedCore::fatal(llvm::Error error) const {
llvm::raw_svector_ostream out(errorStr);
out << "*** DESERIALIZATION FAILURE ***\n";
out << "*** If any module named here was modified in the SDK, please delete the ***\n";
out << "*** new swiftmodule files from the SDK and keep only swiftinterfaces. ***\n";
outputDiagnosticInfo(out);
out << "\n";
if (error) {