diff options
Diffstat (limited to 'lldb/source/Expression/DWARFExpression.cpp')
| -rw-r--r-- | lldb/source/Expression/DWARFExpression.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lldb/source/Expression/DWARFExpression.cpp b/lldb/source/Expression/DWARFExpression.cpp index 22d899f799d0..97bcd4f7eec2 100644 --- a/lldb/source/Expression/DWARFExpression.cpp +++ b/lldb/source/Expression/DWARFExpression.cpp @@ -1780,14 +1780,12 @@ llvm::Expected<Value> DWARFExpression::Evaluate( if (exe_ctx) { if (frame) { Scalar value; - Status fb_err; - if (frame->GetFrameBaseValue(value, &fb_err)) { - int64_t fbreg_offset = opcodes.GetSLEB128(&offset); - value += fbreg_offset; - stack.push_back(value); - stack.back().SetValueType(Value::ValueType::LoadAddress); - } else - return fb_err.ToError(); + if (llvm::Error err = frame->GetFrameBaseValue(value)) + return err; + int64_t fbreg_offset = opcodes.GetSLEB128(&offset); + value += fbreg_offset; + stack.push_back(value); + stack.back().SetValueType(Value::ValueType::LoadAddress); } else { return llvm::createStringError( "invalid stack frame in context for DW_OP_fbreg opcode"); |
