Skip to content

Commit cab6f5b

Browse files
Use one more byte to silence a warning from Vistual C++
1 parent 51c5add commit cab6f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Bitstream/BitstreamWriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class BitstreamWriter {
156156
uint64_t CurPos = FS->tell();
157157

158158
// Copy data to update into Bytes from the file FS and the buffer Out.
159-
char Bytes[8];
159+
char Bytes[9]; // Use one more byte to silence a warning from Visual C++.
160160
size_t BytesNum = StartBit ? 8 : 4;
161161
size_t BytesFromDisk = std::min(static_cast<uint64_t>(BytesNum), NumOfFlushedBytes - ByteNo);
162162
size_t BytesFromBuffer = BytesNum - BytesFromDisk;

0 commit comments

Comments
 (0)