diff options
Diffstat (limited to 'slang_diagnostic_buffer.cpp')
-rw-r--r-- | slang_diagnostic_buffer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/slang_diagnostic_buffer.cpp b/slang_diagnostic_buffer.cpp index ed6f303..f9849bf 100644 --- a/slang_diagnostic_buffer.cpp +++ b/slang_diagnostic_buffer.cpp @@ -26,11 +26,13 @@ namespace slang { DiagnosticBuffer::DiagnosticBuffer() -: mSOS(new llvm::raw_string_ostream(mDiags)) { + : mSOS(new llvm::raw_string_ostream(mDiags)) { } DiagnosticBuffer::DiagnosticBuffer(DiagnosticBuffer const &src) -: mDiags(src.mDiags), mSOS(new llvm::raw_string_ostream(mDiags)) { + : clang::DiagnosticConsumer(src), + mDiags(src.mDiags), + mSOS(new llvm::raw_string_ostream(mDiags)) { } DiagnosticBuffer::~DiagnosticBuffer() { |