[llvm] r291863 - xray-account: Avoid std::errc::bad_message to appease mingw.

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 16:45:36 PST 2017


On Thu, Jan 12, 2017 at 4:17 PM, NAKAMURA Takumi via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: chapuni
> Date: Thu Jan 12 18:17:15 2017
> New Revision: 291863
>
> URL: http://llvm.org/viewvc/llvm-project?rev=291863&view=rev
> Log:
> xray-account: Avoid std::errc::bad_message to appease mingw.
>
> Modified:
>     llvm/trunk/tools/llvm-xray/xray-account.cc
>
> Modified: llvm/trunk/tools/llvm-xray/xray-account.cc
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-account.cc?rev=291863&r1=291862&r2=291863&view=diff
> ==============================================================================
> --- llvm/trunk/tools/llvm-xray/xray-account.cc (original)
> +++ llvm/trunk/tools/llvm-xray/xray-account.cc Thu Jan 12 18:17:15 2017
> @@ -463,7 +463,7 @@ static CommandRegistration Unused(&Accou
>          return make_error<StringError>(
>              Twine("Failed accounting function calls in file '") + AccountInput +
>                  "'.",
> -            std::make_error_code(std::errc::bad_message));
> +            std::make_error_code(std::errc::executable_format_error));
>      }
>      switch (AccountOutputFormat) {
>      case AccountOutputFormats::TEXT:

Should we merge this to llvm 4?


More information about the llvm-commits mailing list