1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

[pdb] Fix some warnings that break -Werror builds.

llvm-svn: 277021
This commit is contained in:
Zachary Turner 2016-07-28 19:18:02 +00:00
parent 7e077bcfe5
commit 9a5389661b
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ namespace llvm {
namespace msf { namespace msf {
template <class StreamType, class RefType> class StreamRefBase { template <class StreamType, class RefType> class StreamRefBase {
public: public:
StreamRefBase() : Stream(nullptr), Length(0), ViewOffset(0) {} StreamRefBase() : Stream(nullptr), ViewOffset(0), Length(0) {}
StreamRefBase(const StreamType &Stream, uint32_t Offset, uint32_t Length) StreamRefBase(const StreamType &Stream, uint32_t Offset, uint32_t Length)
: Stream(&Stream), ViewOffset(Offset), Length(Length) {} : Stream(&Stream), ViewOffset(Offset), Length(Length) {}

View File

@ -198,9 +198,9 @@ Error DbiStreamBuilder::finalize() {
DbiStreamHeader *H = Allocator.Allocate<DbiStreamHeader>(); DbiStreamHeader *H = Allocator.Allocate<DbiStreamHeader>();
if (auto EC = generateModiSubstream()) if (auto EC = generateModiSubstream())
return std::move(EC); return EC;
if (auto EC = generateFileInfoSubstream()) if (auto EC = generateFileInfoSubstream())
return std::move(EC); return EC;
H->VersionHeader = *VerHeader; H->VersionHeader = *VerHeader;
H->VersionSignature = -1; H->VersionSignature = -1;