Simplify invocation of forAllFilesInFilelist.

This commit is contained in:
David Ungar
2017-12-13 09:55:41 -08:00
parent 9c78480bdf
commit 02470d1343

View File

@@ -175,9 +175,11 @@ private:
bool readInputFilesFromFilelist() {
bool hadDuplicates = false;
if (forAllFilesInFilelist(FilelistPathArg, [&](StringRef file) -> void {
bool hadError =
forAllFilesInFilelist(FilelistPathArg, [&](StringRef file) -> void {
hadDuplicates = addFile(file) || hadDuplicates;
}))
});
if (hadError)
return true;
return false; // FIXME: Don't bail out for duplicates, too many tests depend on it.
}