summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp
index 64d8319efe1..d84374ccbc0 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp
@@ -31,8 +31,10 @@ Error InfoStream::reload() {
const Header *H;
if (auto EC = Reader.readObject(H))
- return make_error<RawError>(raw_error_code::corrupt_file,
- "PDB Stream does not contain a header.");
+ return joinErrors(
+ std::move(EC),
+ make_error<RawError>(raw_error_code::corrupt_file,
+ "PDB Stream does not contain a header."));
if (H->Version < PdbRaw_ImplVer::PdbImplVC70)
return make_error<RawError>(raw_error_code::corrupt_file,
OpenPOWER on IntegriCloud