Zachary Turner | d844799 | 2016-06-07 05:28:55 +0000 | [diff] [blame] | 1 | diff a/lib/DebugInfo/PDB/Raw/TpiStream.cpp b/lib/DebugInfo/PDB/Raw/TpiStream.cpp (rejected hunks) |
| 2 | @@ -101,7 +104,8 @@ |
| 3 | return EC; |
| 4 | |
| 5 | // Hash indices, hash values, etc come from the hash stream. |
| 6 | - HashStream.reset(new MappedBlockStream(Header->HashStreamIndex, Pdb)); |
| 7 | + HashStream.reset(new MappedBlockStream( |
| 8 | + llvm::make_unique<IndexedStreamData>(Header->HashStreamIndex, Pdb), Pdb)); |
| 9 | codeview::StreamReader HSR(*HashStream); |
| 10 | uint32_t NumHashValues = Header->HashValueBuffer.Length / sizeof(ulittle32_t); |
| 11 | HSR.setOffset(Header->HashValueBuffer.Off); |