Replaced two instances of std::function with auto.
Thanks to Zachary Turner for the suggestion. It's distasteful that the actual
type of the lambda can't be spelled out, but it should be evident from the
definition of the lambda body.
llvm-svn: 281536
diff --git a/lldb/source/Expression/DWARFExpression.cpp b/lldb/source/Expression/DWARFExpression.cpp
index 07bdca4..71abadd 100644
--- a/lldb/source/Expression/DWARFExpression.cpp
+++ b/lldb/source/Expression/DWARFExpression.cpp
@@ -3335,10 +3335,9 @@
return false;
}
- std::function<bool(const Instruction::Operand &)> recurse =
- [&frame, fb_expr](const Instruction::Operand &child) {
- return fb_expr->MatchesOperand(frame, child);
- };
+ auto recurse = [&frame, fb_expr](const Instruction::Operand &child) {
+ return fb_expr->MatchesOperand(frame, child);
+ };
if (!offset &&
MatchUnaryOp(MatchOpType(Instruction::Operand::Type::Dereference),