1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Fix uninitialized variable warnings in directory_entry default constructor. NFCI

llvm-svn: 373742
This commit is contained in:
Simon Pilgrim 2019-10-04 12:45:42 +00:00
parent 2a491f5064
commit 43ee7ce963

View File

@ -1215,9 +1215,9 @@ class directory_entry {
// that whole structure, callers end up paying for a stat().
// std::filesystem::directory_entry may be a better model.
std::string Path;
file_type Type; // Most platforms can provide this.
bool FollowSymlinks; // Affects the behavior of status().
basic_file_status Status; // If available.
file_type Type = file_type::type_unknown; // Most platforms can provide this.
bool FollowSymlinks = true; // Affects the behavior of status().
basic_file_status Status; // If available.
public:
explicit directory_entry(const Twine &Path, bool FollowSymlinks = true,