[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
This commit is contained in:
Dean Michael Berris 2017-02-01 00:22:20 +00:00
parent 40fe3a93e9
commit dd336006bd

View File

@ -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),