]> granicus.if.org Git - llvm/commit
Following r297661, disable dup workaround to disable duplicate STDOUT fd closing...
authorYaron Keren <yaron.keren@gmail.com>
Thu, 30 Mar 2017 19:30:51 +0000 (19:30 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Thu, 30 Mar 2017 19:30:51 +0000 (19:30 +0000)
commit38ad05a6a6a669c107ee9da686e37ea7d2f7aace
treec2b1effb8a3fe476a581691a9904e0faac38654d
parent1042cb40de32bc7e662a31b3eed667cd543bd547
Following r297661, disable dup workaround to disable duplicate STDOUT fd closing and instead directly prevent closing of STD* file descriptors.

We do not want to close STDOUT as there may have been several uses of it
such as the case: llc %s -o=- -pass-remarks-output=- -filetype=asm
which cause multiple closes of STDOUT_FILENO and/or use-after-close of it.
Using dup() in getFD doesn't work as we end up with original STDOUT_FILENO
open anyhow.

reviewed by Rafael Espindola

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299098 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/raw_ostream.cpp