[Support] MemoryBlock size should reflect the requested size
authorAndrew Ng <anng.sw@gmail.com>
Wed, 27 Mar 2019 10:26:21 +0000 (10:26 +0000)
committerAndrew Ng <anng.sw@gmail.com>
Wed, 27 Mar 2019 10:26:21 +0000 (10:26 +0000)
commit2fc69abf5be8b68f5b18c1c690cd185a4fdce472
tree2ec81ba0f0d8d57b560a8704d25b139b58e12584
parentccb71b2985a2a5073cedd1d734fb0fc2712d68f0
[Support] MemoryBlock size should reflect the requested size

This patch mirrors the change made to the Unix equivalent in
r351916. This in turn fixes bugs related to the use of FileOutputBuffer
to output to "-", i.e. stdout, on Windows.

Differential Revision: https://reviews.llvm.org/D59663

llvm-svn: 357058
llvm/lib/Support/Windows/Memory.inc