[PATCH] D14543: llvm-config: Explicitly flush ostream so output can be piped into other programs.
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 09:55:57 PST 2015
tstellarAMD added a comment.
In http://reviews.llvm.org/D14543#286277, @MatzeB wrote:
> This is confusing, shouldn't the destructor of the object behind outs() take care of the flushing on program exit?
The destructor does normally flush, but I think the what is happening is that the file descriptor is closed before the destructor is called, so the flush doesn't do anything.
http://reviews.llvm.org/D14543
More information about the llvm-commits
mailing list