Recommit "Use possibly cached directory entry values when performing recursive direct...
authorEric Fiselier <eric@efcs.ca>
Mon, 23 Jul 2018 22:40:41 +0000 (22:40 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 23 Jul 2018 22:40:41 +0000 (22:40 +0000)
commitf96de0296023ef936d62191803ecb48622e6b085
tree172158b703b80d74a8a2686fb1b18ef32f2e96b0
parent82d975afa095669a52a2b9cf092d255b7c4b96e4
Recommit "Use possibly cached directory entry values when performing recursive directory iteration."

The initial patch didn't correctly handle systems when the dirent struct
didn't provide the d_type member. Specifically it set the cache to the incorrect state,
and claimed it was partially populated.

The updated version of this change correctly handles setting up the
cache when the file type is not known (aka file_type::none).

llvm-svn: 337765
libcxx/include/experimental/filesystem
libcxx/src/experimental/filesystem/directory_iterator.cpp