[llvm] c39735c - llvm-reduce: Use WithColor in another error message
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 19 17:35:38 PST 2023
Author: Matt Arsenault
Date: 2023-01-19T21:35:27-04:00
New Revision: c39735c92d4dd6e78492bb5acd7e5d40a306c5da
URL: https://github.com/llvm/llvm-project/commit/c39735c92d4dd6e78492bb5acd7e5d40a306c5da
DIFF: https://github.com/llvm/llvm-project/commit/c39735c92d4dd6e78492bb5acd7e5d40a306c5da.diff
LOG: llvm-reduce: Use WithColor in another error message
Added:
Modified:
llvm/tools/llvm-reduce/TestRunner.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-reduce/TestRunner.cpp b/llvm/tools/llvm-reduce/TestRunner.cpp
index c8849de9ed4a..a6ecd1024974 100644
--- a/llvm/tools/llvm-reduce/TestRunner.cpp
+++ b/llvm/tools/llvm-reduce/TestRunner.cpp
@@ -14,6 +14,7 @@
#include "llvm/Bitcode/BitcodeReader.h"
#include "llvm/Bitcode/BitcodeWriter.h"
#include "llvm/Passes/PassBuilder.h"
+#include "llvm/Support/WithColor.h"
#include "llvm/Transforms/IPO/ThinLTOBitcodeWriter.h"
using namespace llvm;
@@ -57,7 +58,7 @@ int TestRunner::run(StringRef Filename) const {
Error E = make_error<StringError>("Error running interesting-ness test: " +
ErrMsg,
inconvertibleErrorCode());
- errs() << toString(std::move(E)) << '\n';
+ WithColor::error(errs(), ToolName) << toString(std::move(E)) << '\n';
exit(1);
}
More information about the llvm-commits
mailing list