From b7d8bba0c45bea171ab0fd5412ab4752a640c133 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 12 Jun 2014 00:57:40 +0000 Subject: Errno should use generic_category. Sorry, no testcase, just noticed while trying to remove llvm's system_error.h llvm-svn: 210727 --- clang/lib/Basic/VirtualFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Basic/VirtualFileSystem.cpp') diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp index 3515bf1c031..1e771e0e772 100644 --- a/clang/lib/Basic/VirtualFileSystem.cpp +++ b/clang/lib/Basic/VirtualFileSystem.cpp @@ -140,7 +140,7 @@ error_code RealFile::getBuffer(const Twine &Name, #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(); } -- cgit v1.2.3