mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Save path traces from failed cross-references.
This is important information in a crash trace, so let's make sure to preserve it even as the stack unwinds.
This commit is contained in:
@@ -436,6 +436,10 @@ public:
|
||||
return getStatus();
|
||||
}
|
||||
|
||||
/// Emits one last diagnostic, logs the error, and then aborts for the stack
|
||||
/// trace.
|
||||
void fatal(llvm::Error error) LLVM_ATTRIBUTE_NORETURN;
|
||||
|
||||
ASTContext &getContext() const {
|
||||
assert(FileContext && "no associated context yet");
|
||||
return FileContext->getParentModule()->getASTContext();
|
||||
|
||||
Reference in New Issue
Block a user