mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Make use of new ArrayRef::consume_* functions. (#5975)
Minor code simplifications.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user