File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
llvm/lib/DebugInfo/PDB/Raw Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,6 @@ std::error_code PDBFile::parseStreamData() {
163
163
uint32_t NumStreams = 0 ;
164
164
uint32_t StreamIdx = 0 ;
165
165
uint64_t DirectoryBytesRead = 0 ;
166
- std::error_code EC;
167
166
168
167
MemoryBufferRef M = *Context->Buffer ;
169
168
const SuperBlock *SB = Context->SB ;
@@ -185,7 +184,7 @@ std::error_code PDBFile::parseStreamData() {
185
184
makeArrayRef (reinterpret_cast <const uint32_t *>(M.getBufferStart () +
186
185
DirectoryBlockOffset),
187
186
SB->BlockSize / sizeof (support::ulittle32_t ));
188
- if (EC = checkOffset (M, DirectoryBlock))
187
+ if (auto EC = checkOffset (M, DirectoryBlock))
189
188
return EC;
190
189
191
190
// We read data out of the directory four bytes at a time. Depending on
Original file line number Diff line number Diff line change @@ -32,15 +32,15 @@ PDB_ErrorCode RawSession::createFromPdb(StringRef Path,
32
32
/* RequiresNullTerminator=*/ false );
33
33
34
34
std::error_code EC;
35
- if (EC = ErrorOrBuffer.getError ())
35
+ if (( EC = ErrorOrBuffer.getError () ))
36
36
return PDB_ErrorCode::CouldNotCreateImpl;
37
37
38
38
std::unique_ptr<MemoryBuffer> &Buffer = ErrorOrBuffer.get ();
39
39
40
40
std::unique_ptr<PDBFile> File (new PDBFile (std::move (Buffer)));
41
- if (EC = File->parseFileHeaders ())
41
+ if (( EC = File->parseFileHeaders () ))
42
42
return PDB_ErrorCode::InvalidFileFormat;
43
- if (EC = File->parseStreamData ())
43
+ if (( EC = File->parseStreamData () ))
44
44
return PDB_ErrorCode::InvalidFileFormat;
45
45
46
46
Session.reset (new RawSession (std::move (File)));
You can’t perform that action at this time.
0 commit comments