We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6313748 + c7774c6 commit 1bc87abCopy full SHA for 1bc87ab
lib/Serialization/ModuleFile.h
@@ -344,9 +344,12 @@ class ModuleFile
344
fatal(expected.takeError());
345
}
346
347
+ /// Report an unexpected format error that could happen only from a memory-level
348
+ /// inconsistency. Please prefer passing an error to `fatal(llvm::Error error)` when possible.
349
[[noreturn]] void fatal() const {
350
fatal(llvm::make_error<llvm::StringError>(
- "(see \"While...\" info below)", llvm::inconvertibleErrorCode()));
351
+ "Memory corruption or serialization format inconsistency.",
352
+ llvm::inconvertibleErrorCode()));
353
354
355
/// Outputs information useful for diagnostics to \p out
0 commit comments