[lldb] Fix -Wmissing-field-initializers in StackFrameList
authorPavel Labath <pavel@labath.sk>
Tue, 9 Jun 2020 09:53:59 +0000 (11:53 +0200)
committerPavel Labath <pavel@labath.sk>
Tue, 9 Jun 2020 09:58:08 +0000 (11:58 +0200)
The code is correct without these default values, but it is freaking the
compiler out.

lldb/source/Target/StackFrameList.cpp

index 8549ac0..e4f5d30 100644 (file)
@@ -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>;