From 308f966088130d00f144e5b24cfe71d5098d414e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 12 Jun 2014 00:57:40 +0000 Subject: [PATCH] Errno should use generic_category. Sorry, no testcase, just noticed while trying to remove llvm's system_error.h git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210727 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/VirtualFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Basic/VirtualFileSystem.cpp b/lib/Basic/VirtualFileSystem.cpp index 3515bf1c03..1e771e0e77 100644 --- a/lib/Basic/VirtualFileSystem.cpp +++ b/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(); } -- 2.40.0