mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user