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 | b7d8bba0c45bea171ab0fd5412ab4752a640c133 (patch) | |
| tree | af72937fdc0933aa8ce99f67d5c0af7aa559e6b9 /clang/lib/Basic/VirtualFileSystem.cpp | |
| parent | 70e2e75e5467442ea9e9c43802045a6cae96e88d (diff) | |
| download | bcm5719-llvm-b7d8bba0c45bea171ab0fd5412ab4752a640c133.tar.gz bcm5719-llvm-b7d8bba0c45bea171ab0fd5412ab4752a640c133.zip | |
Errno should use generic_category.
Sorry, no testcase, just noticed while trying to remove llvm's system_error.h
llvm-svn: 210727
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
| -rw-r--r-- | clang/lib/Basic/VirtualFileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |

