[LLVMdev] Behaviour of outs()?

mats petersson
2015-01-23T17:52:33Z

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?

--
Mats