summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-xray
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-02-01 00:22:20 +0000
committerDean Michael Berris <dberris@google.com>2017-02-01 00:22:20 +0000
commitda2673ce200eb9be99e0d3ecfdb4c57d2cb4fab5 (patch)
tree60c3e8316d96302f0768311f245b9ad1b15d82f8 /llvm/tools/llvm-xray
parent3de4cd1281e074c7f6c406fa219264985b7aedf3 (diff)
downloadbcm5719-llvm-da2673ce200eb9be99e0d3ecfdb4c57d2cb4fab5.tar.gz
bcm5719-llvm-da2673ce200eb9be99e0d3ecfdb4c57d2cb4fab5.zip
[XRay] Use std::errc::invalid_argument instead of std::errc::bad_message
This change should appease the mingw32 builds. Follow-up to D29319. llvm-svn: 293725
Diffstat (limited to 'llvm/tools/llvm-xray')
-rw-r--r--llvm/tools/llvm-xray/xray-graph.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-xray/xray-graph.cc b/llvm/tools/llvm-xray/xray-graph.cc
index 3525b245276..3780ce8672e 100644
--- a/llvm/tools/llvm-xray/xray-graph.cc
+++ b/llvm/tools/llvm-xray/xray-graph.cc
@@ -575,7 +575,7 @@ static CommandRegistration Unused(&Graph, []() -> Error {
if (!GraphKeepGoing)
return joinErrors(make_error<StringError>(
"Error encountered generating the call graph.",
- std::make_error_code(std::errc::bad_message)),
+ std::make_error_code(std::errc::invalid_argument)),
std::move(E));
handleAllErrors(std::move(E),
OpenPOWER on IntegriCloud