[LLVMdev] Behaviour of outs()?

mats petersson mats at planetcatfish.com
Fri Jan 23 09:52:33 PST 2015


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



More information about the llvm-dev mailing list