aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Raw/RawSession.cpp
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-04-21 21:36:11 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-04-21 21:36:11 +0000
commit7e16ce5a84c64eb60e6c1e984512ec58154a7b4c (patch)
tree6766dad4f3ca99666542bb42c97da891dcd17ae0 /llvm/lib/DebugInfo/PDB/Raw/RawSession.cpp
parentaf7aaae1bc44454d0d05a473550357a69c208e09 (diff)
downloadllvm-7e16ce5a84c64eb60e6c1e984512ec58154a7b4c.zip
llvm-7e16ce5a84c64eb60e6c1e984512ec58154a7b4c.tar.gz
llvm-7e16ce5a84c64eb60e6c1e984512ec58154a7b4c.tar.bz2
Remove various warnings. NFC
llvm-svn: 267061
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/RawSession.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/RawSession.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/RawSession.cpp b/llvm/lib/DebugInfo/PDB/Raw/RawSession.cpp
index 05eac63..32c04be 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/RawSession.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/RawSession.cpp
@@ -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)));