diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 |
commit | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (patch) | |
tree | 4adf86a776049cbf7f69a1929c4babcbbef925eb /llvm/lib/Remarks/BitstreamRemarkParser.h | |
parent | 7cc9cf2bf09f069cb2dd947ead05d0b54301fb71 (diff) |
Notes
Diffstat (limited to 'llvm/lib/Remarks/BitstreamRemarkParser.h')
-rw-r--r-- | llvm/lib/Remarks/BitstreamRemarkParser.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Remarks/BitstreamRemarkParser.h b/llvm/lib/Remarks/BitstreamRemarkParser.h index 7c9cc2f1e7db..749219fc5155 100644 --- a/llvm/lib/Remarks/BitstreamRemarkParser.h +++ b/llvm/lib/Remarks/BitstreamRemarkParser.h @@ -34,15 +34,16 @@ struct BitstreamRemarkParser : public RemarkParser { std::unique_ptr<MemoryBuffer> TmpRemarkBuffer; /// The common metadata used to decide how to parse the buffer. /// This is filled when parsing the metadata block. - uint64_t ContainerVersion; - uint64_t RemarkVersion; - BitstreamRemarkContainerType ContainerType; + uint64_t ContainerVersion = 0; + uint64_t RemarkVersion = 0; + BitstreamRemarkContainerType ContainerType = + BitstreamRemarkContainerType::Standalone; /// Wether the parser is ready to parse remarks. bool ReadyToParseRemarks = false; /// Create a parser that expects to find a string table embedded in the /// stream. - BitstreamRemarkParser(StringRef Buf) + explicit BitstreamRemarkParser(StringRef Buf) : RemarkParser(Format::Bitstream), ParserHelper(Buf) {} /// Create a parser that uses a pre-parsed string table. |