mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Basic] Rename abortWithPrettyStackTraceMessage to ABORT
Turn it into a wrapping macro that includes the file location, and move into `Assertions.h`.
This commit is contained in:
@@ -695,7 +695,7 @@ std::string ModuleFileSharedCore::Dependency::getPrettyPrintedPath() const {
|
||||
}
|
||||
|
||||
void ModuleFileSharedCore::fatal(llvm::Error error) const {
|
||||
abortWithPrettyStackTraceMessage([&](auto &out) {
|
||||
ABORT([&](auto &out) {
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user