summaryrefslogtreecommitdiff
path: root/lldb/source/Target/StackFrameList.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-06-09 11:53:59 +0200
committerPavel Labath <pavel@labath.sk>2020-06-09 11:58:08 +0200
commit17798c60bcc284e45529d6afde11bf59ffc549c8 (patch)
tree7c33fcab273368b23c57732eb0f498d615f59054 /lldb/source/Target/StackFrameList.cpp
parent29353e69d25c0f13cd2704ce2269af464d0751a8 (diff)
[lldb] Fix -Wmissing-field-initializers in StackFrameList
The code is correct without these default values, but it is freaking the compiler out.
Diffstat (limited to 'lldb/source/Target/StackFrameList.cpp')
-rw-r--r--lldb/source/Target/StackFrameList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/StackFrameList.cpp b/lldb/source/Target/StackFrameList.cpp
index 8549ac079b02..e4f5d3028366 100644
--- a/lldb/source/Target/StackFrameList.cpp
+++ b/lldb/source/Target/StackFrameList.cpp
@@ -241,8 +241,8 @@ void StackFrameList::GetOnlyConcreteFramesUpTo(uint32_t end_idx,
/// callee.
struct CallDescriptor {
Function *func;
- CallEdge::AddrType address_type;
- addr_t address;
+ CallEdge::AddrType address_type = CallEdge::AddrType::Call;
+ addr_t address = LLDB_INVALID_ADDRESS;
};
using CallSequence = std::vector<CallDescriptor>;