diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-31 02:29:28 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-31 02:29:28 +0000 |
commit | 1028cc76ef8b40a933aba58cc531ccf466951771 (patch) | |
tree | 524fa8341d5e79eaa8a3e5319e1758f8ed9db4f2 /lib/Support/Windows | |
parent | 1bab2d53996ca082150f34d8dafc1968fb5ecba9 (diff) | |
download | llvm-1028cc76ef8b40a933aba58cc531ccf466951771.tar.gz llvm-1028cc76ef8b40a933aba58cc531ccf466951771.tar.bz2 llvm-1028cc76ef8b40a933aba58cc531ccf466951771.tar.xz |
Turn errc and windows_error into enum classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows')
-rw-r--r-- | lib/Support/Windows/Path.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 8baa263cb8..f04900c0dd 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -810,7 +810,7 @@ error_code openFileForRead(const Twine &Name, int &ResultFD) { if (EC != windows_error::access_denied) return EC; if (is_directory(Name)) - return error_code(errc::is_a_directory, posix_category()); + return make_error_code(errc::is_a_directory); return EC; } @@ -861,7 +861,7 @@ error_code openFileForWrite(const Twine &Name, int &ResultFD, if (EC != windows_error::access_denied) return EC; if (is_directory(Name)) - return error_code(errc::is_a_directory, posix_category()); + return make_error_code(errc::is_a_directory); return EC; } |