[llvm] [llvm-exegesis] Add explicit error message with segfault address (PR #74210)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 01:01:57 PST 2023
================
@@ -41,14 +43,19 @@ class ClusteringError : public ErrorInfo<ClusteringError> {
class SnippetCrash : public ErrorInfo<SnippetCrash> {
public:
static char ID;
- SnippetCrash(const Twine &S) : Msg(S.str()) {}
+ SnippetCrash(const Twine &S)
----------------
boomanaiden154 wrote:
I'm intending to use this in Gematria (https://github.com/google/gematria) and I need to have access to the segfault address there. I sent a patch separating the errors out in https://reviews.llvm.org/D158052, but the suggestion there was to reuse `SnippetCrash`. I can refactor to `SnippetFailed` and `SnippetCrashed` (maybe with different names to make the distinction more noticeable) if desired though.
https://github.com/llvm/llvm-project/pull/74210
More information about the llvm-commits
mailing list