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 | 882ce87b2e81920f0edf3f03ddd5f25fbaa085a7 (patch) | |
| tree | 56a9a5834fc9fe2d378255d6a95f229f9a58cede /llvm/tools/llvm-ar/llvm-ar.cpp | |
| parent | fd148d0b6f3e4006273c42bf3e35b101681dce57 (diff) | |
| download | bcm5719-llvm-882ce87b2e81920f0edf3f03ddd5f25fbaa085a7.tar.gz bcm5719-llvm-882ce87b2e81920f0edf3f03ddd5f25fbaa085a7.zip | |
Turn errc and windows_error into enum classes.
llvm-svn: 209957
Diffstat (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp')
| -rw-r--r-- | llvm/tools/llvm-ar/llvm-ar.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index ed7291ea0c9..ea85d5d3c95 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/tools/llvm-ar/llvm-ar.cpp @@ -453,8 +453,7 @@ int NewArchiveIterator::getFD() const { // Linux cannot open directories with open(2), although // cygwin and *bsd can. if (NewStatus.type() == sys::fs::file_type::directory_file) - failIfError(error_code(errc::is_a_directory, posix_category()), - NewFilename); + failIfError(make_error_code(errc::is_a_directory), NewFilename); return NewFD; } |

