diff --git a/llvm/tools/llvm-xray/xray-graph.cc b/llvm/tools/llvm-xray/xray-graph.cc index 3525b2452763..3780ce8672e3 100644 --- a/llvm/tools/llvm-xray/xray-graph.cc +++ b/llvm/tools/llvm-xray/xray-graph.cc @@ -575,7 +575,7 @@ static CommandRegistration Unused(&Graph, []() -> Error { if (!GraphKeepGoing) return joinErrors(make_error( "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),