summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/StackFrame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target/StackFrame.cpp')
-rw-r--r--lldb/source/Target/StackFrame.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Target/StackFrame.cpp b/lldb/source/Target/StackFrame.cpp
index eb49724b9ec..570464b941c 100644
--- a/lldb/source/Target/StackFrame.cpp
+++ b/lldb/source/Target/StackFrame.cpp
@@ -1608,10 +1608,9 @@ lldb::ValueObjectSP DoGuessValueAt(StackFrame &frame, ConstString reg,
}
Instruction::Operand *origin_operand = nullptr;
- std::function<bool(const Instruction::Operand &)> clobbered_reg_matcher =
- [reg_info](const Instruction::Operand &op) {
- return MatchRegOp(*reg_info)(op) && op.m_clobbered;
- };
+ auto clobbered_reg_matcher = [reg_info](const Instruction::Operand &op) {
+ return MatchRegOp(*reg_info)(op) && op.m_clobbered;
+ };
if (clobbered_reg_matcher(operands[0])) {
origin_operand = &operands[1];
OpenPOWER on IntegriCloud