[Lldb-commits] [lldb] 17798c6 - [lldb] Fix -Wmissing-field-initializers in StackFrameList

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 9 02:58:18 PDT 2020


Author: Pavel Labath
Date: 2020-06-09T11:58:08+02:00
New Revision: 17798c60bcc284e45529d6afde11bf59ffc549c8

URL: https://github.com/llvm/llvm-project/commit/17798c60bcc284e45529d6afde11bf59ffc549c8
DIFF: https://github.com/llvm/llvm-project/commit/17798c60bcc284e45529d6afde11bf59ffc549c8.diff

LOG: [lldb] Fix -Wmissing-field-initializers in StackFrameList

The code is correct without these default values, but it is freaking the
compiler out.

Added: 
    

Modified: 
    lldb/source/Target/StackFrameList.cpp

Removed: 
    


################################################################################
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>;
 


        


More information about the lldb-commits mailing list