]> granicus.if.org Git - llvm/commitdiff
[XRay] Use std::errc::invalid_argument instead of std::errc::bad_message
authorDean Michael Berris <dberris@google.com>
Wed, 1 Feb 2017 00:22:20 +0000 (00:22 +0000)
committerDean Michael Berris <dberris@google.com>
Wed, 1 Feb 2017 00:22:20 +0000 (00:22 +0000)
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

tools/llvm-xray/xray-graph.cc

index 3525b24527635e709d44b23d5656e6d4f382eb79..3780ce8672e3814ecdf712b4d6dcd7b5816bd1df 100644 (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),