[llvm] r293725 - [XRay] Use std::errc::invalid_argument instead of std::errc::bad_message

Dean Michael Berris via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 16:22:20 PST 2017


Author: dberris
Date: Tue Jan 31 18:22:20 2017
New Revision: 293725

URL: http://llvm.org/viewvc/llvm-project?rev=293725&view=rev
Log:
[XRay] Use std::errc::invalid_argument instead of std::errc::bad_message

This change should appease the mingw32 builds.

Follow-up to D29319.

Modified:
    llvm/trunk/tools/llvm-xray/xray-graph.cc

Modified: llvm/trunk/tools/llvm-xray/xray-graph.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-graph.cc?rev=293725&r1=293724&r2=293725&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-xray/xray-graph.cc (original)
+++ llvm/trunk/tools/llvm-xray/xray-graph.cc Tue Jan 31 18:22:20 2017
@@ -575,7 +575,7 @@ static CommandRegistration Unused(&Graph
     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),




More information about the llvm-commits mailing list