@@ -38,7 +38,7 @@ namespace llvm {
38
38
// / TheStream - The real stream we output to. We set it to be
39
39
// / unbuffered, since we're already doing our own buffering.
40
40
// /
41
- raw_ostream *TheStream;
41
+ raw_ostream *TheStream = nullptr ;
42
42
43
43
// / OwnsStream - Are we responsible for managing the underlying
44
44
// / stream?
@@ -51,7 +51,7 @@ namespace llvm {
51
51
52
52
// / BufferArray - The actual buffer storage.
53
53
// /
54
- char *BufferArray;
54
+ char *BufferArray = nullptr ;
55
55
56
56
// / Cur - Pointer to the current output point in BufferArray.
57
57
// /
@@ -60,7 +60,7 @@ namespace llvm {
60
60
// / Filled - Indicate whether the buffer has been completely
61
61
// / filled. This helps avoid garbage output.
62
62
// /
63
- bool Filled;
63
+ bool Filled = false ;
64
64
65
65
// / Banner - A pointer to a banner to print before dumping the
66
66
// / log.
@@ -106,9 +106,8 @@ namespace llvm {
106
106
// /
107
107
circular_raw_ostream (raw_ostream &Stream, const char *Header,
108
108
size_t BuffSize = 0 , bool Owns = REFERENCE_ONLY)
109
- : raw_ostream(/* unbuffered*/ true ), TheStream(nullptr ),
110
- OwnsStream (Owns), BufferSize(BuffSize), BufferArray(nullptr ),
111
- Filled(false ), Banner(Header) {
109
+ : raw_ostream(/* unbuffered*/ true ), OwnsStream(Owns),
110
+ BufferSize (BuffSize), Banner(Header) {
112
111
if (BufferSize != 0 )
113
112
BufferArray = new char [BufferSize];
114
113
Cur = BufferArray;
0 commit comments