diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 00179bc32551f..368dead449149 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -175,8 +175,7 @@ class CommandLineParser { StringRef Overview, raw_ostream *Errs = nullptr, bool LongOptionsUseDoubleDash = false); - void forEachSubCommand(Option &Opt, - std::function Action) { + void forEachSubCommand(Option &Opt, function_ref Action) { if (Opt.Subs.empty()) { Action(SubCommand::getTopLevel()); return;