HomePhabricator

[Support] MemoryBlock size should reflect the requested size

Authored by andrewng on Mar 27 2019, 3:26 AM.

Description

[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