mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Adopt ABORT throughout the compiler
Convert a bunch of places where we're dumping to stderr and calling `abort` over to using `ABORT` such that the message gets printed to the pretty stack trace. This ensures it gets picked up by CrashReporter.
This commit is contained in:
@@ -579,8 +579,10 @@ public:
|
||||
Fingerprint::DIGEST_LENGTH};
|
||||
if (auto fp = Fingerprint::fromString(str))
|
||||
return fp.value();
|
||||
llvm::errs() << "Unconvertable fingerprint '" << str << "'\n";
|
||||
abort();
|
||||
|
||||
ABORT([&](auto &out) {
|
||||
out << "Unconvertable fingerprint '" << str << "'";
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user