diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-04 22:25:16 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-04 22:25:16 +0000 |
commit | 4b570baa7e867c652fa7d690585098278082fae9 (patch) | |
tree | c6e77230776692322e962bcf30eaf96abfc4bb08 /include/llvm/Support/FileSystem.h | |
parent | c82ad72f63369bc462e59458f09960d66daa58a9 (diff) |
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 347f21108913..586999794d50 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -858,7 +858,7 @@ public: // No operator++ because we need error_code. recursive_directory_iterator &increment(std::error_code &ec) { - const directory_iterator end_itr; + const directory_iterator end_itr = {}; if (State->HasNoPushRequest) State->HasNoPushRequest = false; @@ -905,7 +905,7 @@ public: assert(State && "Cannot pop an end iterator!"); assert(State->Level > 0 && "Cannot pop an iterator with level < 1"); - const directory_iterator end_itr; + const directory_iterator end_itr = {}; std::error_code ec; do { if (ec) |