From da2673ce200eb9be99e0d3ecfdb4c57d2cb4fab5 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Wed, 1 Feb 2017 00:22:20 +0000 Subject: [PATCH] [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 --- llvm/tools/llvm-xray/xray-graph.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-xray/xray-graph.cc b/llvm/tools/llvm-xray/xray-graph.cc index 3525b2452763..3780ce8672e3 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( "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),