Skip to content

Commit 90c4be1

Browse files
author
git apple-llvm automerger
committed
Merge commit '98e20e15ba22' from llvm.org/main into next
2 parents f7d018b + 98e20e1 commit 90c4be1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Support/CommandLine.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ class CommandLineParser {
175175
StringRef Overview, raw_ostream *Errs = nullptr,
176176
bool LongOptionsUseDoubleDash = false);
177177

178-
void forEachSubCommand(Option &Opt,
179-
std::function<void(SubCommand &)> Action) {
178+
void forEachSubCommand(Option &Opt, function_ref<void(SubCommand &)> Action) {
180179
if (Opt.Subs.empty()) {
181180
Action(SubCommand::getTopLevel());
182181
return;

0 commit comments

Comments
 (0)