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:
parent
53005993ea
commit
3c56b8ce44
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user