diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-12 00:57:40 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-12 00:57:40 +0000 |
| commit | 308f966088130d00f144e5b24cfe71d5098d414e (patch) | |
| tree | 67eaad4e7d31ebb815f0b0e822bb8c618ed1794f /lib/Basic/VirtualFileSystem.cpp | |
| parent | c263ed7d464e3f66dc1c8ca4eecaf009f86806cf (diff) | |
| download | clang-308f966088130d00f144e5b24cfe71d5098d414e.tar.gz clang-308f966088130d00f144e5b24cfe71d5098d414e.tar.bz2 clang-308f966088130d00f144e5b24cfe71d5098d414e.tar.xz | |
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
Diffstat (limited to 'lib/Basic/VirtualFileSystem.cpp')
| -rw-r--r-- | lib/Basic/VirtualFileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |
