From: Dean Michael Berris Date: Wed, 1 Feb 2017 00:22:20 +0000 (+0000) Subject: [XRay] Use std::errc::invalid_argument instead of std::errc::bad_message X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd336006bd48bd91616544fcca05af3a49e42bf8;p=llvm [XRay] Use std::errc::invalid_argument instead of std::errc::bad_message This change should appease the mingw32 builds. Follow-up to D29319. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293725 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-xray/xray-graph.cc b/tools/llvm-xray/xray-graph.cc index 3525b245276..3780ce8672e 100644 --- a/tools/llvm-xray/xray-graph.cc +++ b/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),