summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-xray/xray-log-reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-xray/xray-log-reader.cc')
-rw-r--r--llvm/tools/llvm-xray/xray-log-reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-xray/xray-log-reader.cc b/llvm/tools/llvm-xray/xray-log-reader.cc
index 712aa36d5cb..1dc745fe59a 100644
--- a/llvm/tools/llvm-xray/xray-log-reader.cc
+++ b/llvm/tools/llvm-xray/xray-log-reader.cc
@@ -123,7 +123,7 @@ Error llvm::xray::NaiveLogLoader(StringRef Data, XRayFileHeader &FileHeader,
default:
return make_error<StringError>(
Twine("Unknown record type '") + Twine(int{Type}) + "'",
- std::make_error_code(std::errc::protocol_error));
+ std::make_error_code(std::errc::executable_format_error));
}
Record.FuncId = RecordExtractor.getSigned(&OffsetPtr, sizeof(int32_t));
Record.TSC = RecordExtractor.getU64(&OffsetPtr);
OpenPOWER on IntegriCloud