diff options
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp index 86e799ca663..36f8ead090a 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/MappedBlockStream.cpp @@ -104,7 +104,7 @@ Error MappedBlockStream::readBytes(uint32_t Offset, uint32_t Size,    // into it, and return an ArrayRef to that.  Do not touch existing pool    // allocations, as existing clients may be holding a pointer which must    // not be invalidated. -  uint8_t *WriteBuffer = Pool.Allocate<uint8_t>(Size); +  uint8_t *WriteBuffer = static_cast<uint8_t *>(Pool.Allocate(Size, 8));    if (auto EC = readBytes(Offset, MutableArrayRef<uint8_t>(WriteBuffer, Size)))      return EC; | 

