diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2016-05-27 22:07:50 +0000 | 
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2016-05-27 22:07:50 +0000 | 
| commit | 74b1fb00f7beb8e72365a285346488442fe2db14 (patch) | |
| tree | 95ab07ebac843720e2673710858c149a58c99ed8 /llvm/lib | |
| parent | d9a451ab0dcdfbb7750a22201b7a4a6770c46ea9 (diff) | |
| download | bcm5719-llvm-74b1fb00f7beb8e72365a285346488442fe2db14.tar.gz bcm5719-llvm-74b1fb00f7beb8e72365a285346488442fe2db14.zip  | |
Don't discard errors
llvm-svn: 271056
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/InfoStream.cpp | 6 | 
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,  | 

