Index: llvm/include/llvm/DebugInfo/CodeView/SymbolSerializer.h =================================================================== --- llvm/include/llvm/DebugInfo/CodeView/SymbolSerializer.h +++ llvm/include/llvm/DebugInfo/CodeView/SymbolSerializer.h @@ -22,13 +22,14 @@ #include "llvm/Support/Error.h" #include #include +#include namespace llvm { namespace codeview { class SymbolSerializer : public SymbolVisitorCallbacks { BumpPtrAllocator &Storage; - std::vector RecordBuffer; + std::array RecordBuffer; MutableBinaryByteStream Stream; BinaryStreamWriter Writer; SymbolRecordMapping Mapping; Index: llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp =================================================================== --- llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp +++ llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp @@ -21,8 +21,7 @@ SymbolSerializer::SymbolSerializer(BumpPtrAllocator &Allocator, CodeViewContainer Container) - : Storage(Allocator), RecordBuffer(MaxRecordLength), - Stream(RecordBuffer, support::little), Writer(Stream), + : Storage(Allocator), Stream(RecordBuffer, support::little), Writer(Stream), Mapping(Writer, Container) {} Error SymbolSerializer::visitSymbolBegin(CVSymbol &Record) {