[LLVMdev] llvm and stream error

Yakov Malinkovich yakovm3 at gmail.com
Sun Oct 16 07:49:56 PDT 2011

Here is the code of the functions:

int getStream()
           int fd = _dup(fileno(stdout));
           return fd;

void freeStream(int fd)

The code of main program:

printf(“start tets”);
int fd = getStream();

This is a part of large program which uses llvm The problem I get
after freeStream(fd): LLVM ERROR: IO failure on output stream. I
understand that the problem is with freeStream implementation. What do
you think? Thanks


More information about the llvm-dev mailing list