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:
Hamish Knight
2025-05-19 20:55:01 +01:00
parent b8fc71c684
commit edca7c85ad
42 changed files with 757 additions and 670 deletions

View File

@@ -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 << "'";
});
}
};