Errno should use generic_category.
Sorry, no testcase, just noticed while trying to remove llvm's system_error.h llvm-svn: 210727
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user