mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-02 08:11:54 +00:00
Remove various warnings. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3494767094
commit
48c9c5be8d
@ -163,7 +163,6 @@ std::error_code PDBFile::parseStreamData() {
|
||||
uint32_t NumStreams = 0;
|
||||
uint32_t StreamIdx = 0;
|
||||
uint64_t DirectoryBytesRead = 0;
|
||||
std::error_code EC;
|
||||
|
||||
MemoryBufferRef M = *Context->Buffer;
|
||||
const SuperBlock *SB = Context->SB;
|
||||
@ -185,7 +184,7 @@ std::error_code PDBFile::parseStreamData() {
|
||||
makeArrayRef(reinterpret_cast<const uint32_t *>(M.getBufferStart() +
|
||||
DirectoryBlockOffset),
|
||||
SB->BlockSize / sizeof(support::ulittle32_t));
|
||||
if (EC = checkOffset(M, DirectoryBlock))
|
||||
if (auto EC = checkOffset(M, DirectoryBlock))
|
||||
return EC;
|
||||
|
||||
// We read data out of the directory four bytes at a time. Depending on
|
||||
|
@ -32,15 +32,15 @@ PDB_ErrorCode RawSession::createFromPdb(StringRef Path,
|
||||
/*RequiresNullTerminator=*/false);
|
||||
|
||||
std::error_code EC;
|
||||
if (EC = ErrorOrBuffer.getError())
|
||||
if ((EC = ErrorOrBuffer.getError()))
|
||||
return PDB_ErrorCode::CouldNotCreateImpl;
|
||||
|
||||
std::unique_ptr<MemoryBuffer> &Buffer = ErrorOrBuffer.get();
|
||||
|
||||
std::unique_ptr<PDBFile> File(new PDBFile(std::move(Buffer)));
|
||||
if (EC = File->parseFileHeaders())
|
||||
if ((EC = File->parseFileHeaders()))
|
||||
return PDB_ErrorCode::InvalidFileFormat;
|
||||
if (EC = File->parseStreamData())
|
||||
if ((EC = File->parseStreamData()))
|
||||
return PDB_ErrorCode::InvalidFileFormat;
|
||||
|
||||
Session.reset(new RawSession(std::move(File)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user