aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/llvm-reduce.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2025-04-02 23:43:06 +0700
committerGitHub <noreply@github.com>2025-04-02 23:43:06 +0700
commitefca37fda55ade9fd079c932ad14ab59c3bfecbc (patch)
tree2a1d2ce0d2c95b90df6cba8be34981744d4ef696 /llvm/tools/llvm-reduce/llvm-reduce.cpp
parentddc48fefe389789f64713b5924a03fb2b7961ef3 (diff)
downloadllvm-efca37fda55ade9fd079c932ad14ab59c3bfecbc.zip
llvm-efca37fda55ade9fd079c932ad14ab59c3bfecbc.tar.gz
llvm-efca37fda55ade9fd079c932ad14ab59c3bfecbc.tar.bz2
llvm-reduce: Change exit code for uninteresting inputs (#134021)
This makes it easier to reduce llvm-reduce with llvm-reduce to filter cases where the input reduced too much. Not sure if it's possible to test the exit code in lit.
Diffstat (limited to 'llvm/tools/llvm-reduce/llvm-reduce.cpp')
-rw-r--r--llvm/tools/llvm-reduce/llvm-reduce.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-reduce/llvm-reduce.cpp b/llvm/tools/llvm-reduce/llvm-reduce.cpp
index 288a384..f749298 100644
--- a/llvm/tools/llvm-reduce/llvm-reduce.cpp
+++ b/llvm/tools/llvm-reduce/llvm-reduce.cpp
@@ -203,7 +203,7 @@ int main(int Argc, char **Argv) {
// interestingness checks.
if (!Tester.getProgram().isReduced(Tester)) {
errs() << "\nInput isn't interesting! Verify interesting-ness test\n";
- return 1;
+ return 2;
}
// Try to reduce code