File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
llvm/include/llvm/Demangle Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ DEMANGLE_NAMESPACE_BEGIN
25
25
// Stream that AST nodes write their string representation into after the AST
26
26
// has been parsed.
27
27
class OutputStream {
28
- char *Buffer;
29
- size_t CurrentPosition;
30
- size_t BufferCapacity;
28
+ char *Buffer = nullptr ;
29
+ size_t CurrentPosition = 0 ;
30
+ size_t BufferCapacity = 0 ;
31
31
32
32
// Ensure there is at least n more positions in buffer.
33
33
void grow (size_t N) {
@@ -137,7 +137,7 @@ class OutputStream {
137
137
138
138
char *getBuffer () { return Buffer; }
139
139
char *getBufferEnd () { return Buffer + CurrentPosition - 1 ; }
140
- size_t getBufferCapacity () { return BufferCapacity; }
140
+ size_t getBufferCapacity () const { return BufferCapacity; }
141
141
};
142
142
143
143
template <class T > class SwapAndRestore {
You can’t perform that action at this time.
0 commit comments