diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-08 22:44:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-08 22:44:16 +0000 |
commit | 100f239df90c2576cfd6ce4fdcf3886033c00e26 (patch) | |
tree | 5e50e543cbfd81838319e59e1f8fd76aca7fa0a8 /lib/Basic/FileManager.cpp | |
parent | 332bb2a2e3cd0a5af85758847a8050ae8ceee5f3 (diff) | |
download | clang-100f239df90c2576cfd6ce4fdcf3886033c00e26.tar.gz |
Update for API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileManager.cpp')
-rw-r--r-- | lib/Basic/FileManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Basic/FileManager.cpp b/lib/Basic/FileManager.cpp index 138b54cc08..f407f9b214 100644 --- a/lib/Basic/FileManager.cpp +++ b/lib/Basic/FileManager.cpp @@ -432,8 +432,8 @@ getBufferForFile(const FileEntry *Entry, std::string *ErrorStr) { Entry->getSize()); if (ErrorStr) *ErrorStr = ec.message(); - // getOpenFile will have closed the file descriptor, don't reuse or - // reclose it. + + close(Entry->FD); Entry->FD = -1; return Result.take(); } |