]> granicus.if.org Git - llvm/commitdiff
xray-account: Avoid std::errc::bad_message to appease mingw.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 13 Jan 2017 00:17:15 +0000 (00:17 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 13 Jan 2017 00:17:15 +0000 (00:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291863 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-xray/xray-account.cc

index 84a7da2470a2dd207c94db0833f7f2bd44fbefb2..671a5a073eeccc4ba1cb01ae5f8cf16d733b25e9 100644 (file)
@@ -463,7 +463,7 @@ static CommandRegistration Unused(&Account, []() -> Error {
         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: