Skip to content

Commit e950602

Browse files
committed
Fix some buildbot issues with const objects with default ctors
llvm-svn: 291013
1 parent c88697d commit e950602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Support/FileSystem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ class recursive_directory_iterator {
858858

859859
// No operator++ because we need error_code.
860860
recursive_directory_iterator &increment(std::error_code &ec) {
861-
const directory_iterator end_itr;
861+
const directory_iterator end_itr = {};
862862

863863
if (State->HasNoPushRequest)
864864
State->HasNoPushRequest = false;
@@ -905,7 +905,7 @@ class recursive_directory_iterator {
905905
assert(State && "Cannot pop an end iterator!");
906906
assert(State->Level > 0 && "Cannot pop an iterator with level < 1");
907907

908-
const directory_iterator end_itr;
908+
const directory_iterator end_itr = {};
909909
std::error_code ec;
910910
do {
911911
if (ec)

0 commit comments

Comments
 (0)