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: