From bda0ff24790566b4a742a0cf238d74111eec02ab Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 13 Jan 2017 00:17:15 +0000 Subject: [PATCH] xray-account: Avoid std::errc::bad_message to appease mingw. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291863 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-xray/xray-account.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-xray/xray-account.cc b/tools/llvm-xray/xray-account.cc index 84a7da2470a..671a5a073ee 100644 --- a/tools/llvm-xray/xray-account.cc +++ b/tools/llvm-xray/xray-account.cc @@ -463,7 +463,7 @@ static CommandRegistration Unused(&Account, []() -> Error { return make_error( 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: -- 2.40.0