[cfe-commits] r125129 - /cfe/trunk/lib/Basic/FileManager.cpp
Rafael Espindola
rafael.espindola at gmail.com
Tue Feb 8 14:44:16 PST 2011
Author: rafael
Date: Tue Feb 8 16:44:16 2011
New Revision: 125129
URL: http://llvm.org/viewvc/llvm-project?rev=125129&view=rev
Log:
Update for API change.
Modified:
cfe/trunk/lib/Basic/FileManager.cpp
Modified: cfe/trunk/lib/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/FileManager.cpp?rev=125129&r1=125128&r2=125129&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/FileManager.cpp (original)
+++ cfe/trunk/lib/Basic/FileManager.cpp Tue Feb 8 16:44:16 2011
@@ -432,8 +432,8 @@
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();
}
More information about the cfe-commits
mailing list