Author: rafael
Date: Wed Jun 11 19:57:40 2014
New Revision: 210727

URL: http://llvm.org/viewvc/llvm-project?rev=210727&view=rev
Log:
Errno should use generic_category.

Sorry, no testcase, just noticed while trying to remove llvm's system_error.h

Modified:
    cfe/trunk/lib/Basic/VirtualFileSystem.cpp

Modified: cfe/trunk/lib/Basic/VirtualFileSystem.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/VirtualFileSystem.cpp?rev=210727&r1=210726&r2=210727&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/VirtualFileSystem.cpp (original)
+++ cfe/trunk/lib/Basic/VirtualFileSystem.cpp Wed Jun 11 19:57:40 2014
@@ -140,7 +140,7 @@ error_code RealFile::getBuffer(const Twi
 #endif
 error_code RealFile::close() {
   if (::close(FD))
-    return error_code(errno, system_category());
+    return error_code(errno, generic_category());
   FD = -1;
   return error_code();
 }


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to