Index: lib/Sema/SemaStmt.cpp =================================================================== --- lib/Sema/SemaStmt.cpp +++ lib/Sema/SemaStmt.cpp @@ -2223,7 +2223,6 @@ llvm::function_ref BuildFound, llvm::function_ref BuildNotFound) { LookupResult OldFound = std::move(Found); - Found.clear(); if (Sema::ForRangeStatus Result = BuildNotFound()) return Result;