search for: r111643

Displaying 2 results from an estimated 2 matches for "r111643".

Did you mean: 111643
2015 Jan 23
3
[LLVMdev] Behaviour of outs()?
...seems to be that `outs()` returns a static object > > created from `raw_fd_stream(STDOUT_FILENO, true)` - the `true` being > > the `shouldClose` parameter. > > > > Surely LLVM is not supposed to close `stdout` as part of its operations? > > Looks like this was added in r111643: > > commit 5d56d9df928c48571980efe8d4205de8ab557b7c > Author: Dan Gohman <gohman at apple.com> > Date: Fri Aug 20 16:44:56 2010 +0000 > > Make outs() close its file when its stream is destructed, so that > pending output errors are detected. > > >...
2015 Jan 23
3
[LLVMdev] Behaviour of outs()?
I was just fixing a bug that was caused by `stdout` being closed before the runtime has done `fflush(stdout)` [or however this is implemented in the runtime]. The cause of this seems to be that `outs()` returns a static object created from `raw_fd_stream(STDOUT_FILENO, true)` - the `true` being the `shouldClose` parameter. Surely LLVM is not supposed to close `stdout` as part of its operations?