diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-03-15 00:47:44 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-03-15 00:47:44 +0000 |
commit | 669b0b1521f8ce6c4dd9e5de83069523a49cf86c (patch) | |
tree | 6a7fcc7edc9490ac76b822a5f930f7ee1ebc4259 /llvm/lib/CodeGen/DwarfEHPrepare.cpp | |
parent | f6b01ff4228cc9852f6c40d2c986e5fff3e8aae8 (diff) | |
download | bcm5719-llvm-669b0b1521f8ce6c4dd9e5de83069523a49cf86c.tar.gz bcm5719-llvm-669b0b1521f8ce6c4dd9e5de83069523a49cf86c.zip |
Stop leaking file descriptors.
After the open+fstat optimization, files were already opened for FileManager::getBufferForFile() and we closed them after reading them.
The problem was that when -working-directory was passed, the code path that actually reuses & closes the already opened file descriptor
was not followed.
llvm-svn: 127639
Diffstat (limited to 'llvm/lib/CodeGen/DwarfEHPrepare.cpp')
0 files changed, 0 insertions, 0 deletions