[all-commits] [llvm/llvm-project] ed4f0c: [VFS] Use generic_category for errors generated fr...
Ben Barham via All-commits
all-commits at lists.llvm.org
Tue Feb 22 15:09:07 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ed4f0cb87878e63378f2a37a2af2b538eb493a04
https://github.com/llvm/llvm-project/commit/ed4f0cb87878e63378f2a37a2af2b538eb493a04
Author: Ben Barham <ben_barham at apple.com>
Date: 2022-02-22 (Tue, 22 Feb 2022)
Changed paths:
M llvm/lib/Support/VirtualFileSystem.cpp
Log Message:
-----------
[VFS] Use generic_category for errors generated from the VFS
Errors are generally checked in clients by comparing to the portable
error condition in `std::errc`, which will have the `generic_category`
(eg. `std::errc::no_such_file_or_directory`). While in practice these
are usually equivalent for the standard errno's, they are not in *all*
implementations. One such example is CentOS 7.
Differential Revision: https://reviews.llvm.org/D120299
More information about the All-commits
mailing list