1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Don't discard errors

llvm-svn: 271056
This commit is contained in:
David Majnemer 2016-05-27 22:07:50 +00:00
parent 53005993ea
commit 3c56b8ce44

View File

@ -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,