We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88697d commit e950602Copy full SHA for e950602
llvm/include/llvm/Support/FileSystem.h
@@ -858,7 +858,7 @@ class recursive_directory_iterator {
858
859
// No operator++ because we need error_code.
860
recursive_directory_iterator &increment(std::error_code &ec) {
861
- const directory_iterator end_itr;
+ const directory_iterator end_itr = {};
862
863
if (State->HasNoPushRequest)
864
State->HasNoPushRequest = false;
@@ -905,7 +905,7 @@ class recursive_directory_iterator {
905
assert(State && "Cannot pop an end iterator!");
906
assert(State->Level > 0 && "Cannot pop an iterator with level < 1");
907
908
909
std::error_code ec;
910
do {
911
if (ec)
0 commit comments