Make use of new ArrayRef::consume_* functions. (#5975)

Minor code simplifications.
This commit is contained in:
Richard Smith
2025-08-21 21:41:53 +00:00
committed by GitHub
parent 046fbbcb29
commit 816d4589cd
7 changed files with 9 additions and 14 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ static auto GetFilesFromArgs(llvm::ArrayRef<llvm::StringRef> args,
if (args.empty() || args.front() != "default_args") {
return ErrorBuilder() << "missing `default_args` argument";
}
args = args.drop_front();
args.consume_front();
for (auto arg : args) {
if (!fs.exists(arg)) {