[Lldb-commits] [lldb] 0509932 - [lldb] Initialize active_row pointer variable

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 3 06:15:18 PDT 2025


Author: Pavel Labath
Date: 2025-04-03T15:15:09+02:00
New Revision: 0509932bb6a291ba11253f30c465ab3ad164ae08

URL: https://github.com/llvm/llvm-project/commit/0509932bb6a291ba11253f30c465ab3ad164ae08
DIFF: https://github.com/llvm/llvm-project/commit/0509932bb6a291ba11253f30c465ab3ad164ae08.diff

LOG: [lldb] Initialize active_row pointer variable

It's value is not set on all control flow paths. I believe this should
fix the failure on some buildbots after #133247.

Added: 
    

Modified: 
    lldb/source/Target/RegisterContextUnwind.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Target/RegisterContextUnwind.cpp b/lldb/source/Target/RegisterContextUnwind.cpp
index cb3d7ee479890..4f8b8a281a020 100644
--- a/lldb/source/Target/RegisterContextUnwind.cpp
+++ b/lldb/source/Target/RegisterContextUnwind.cpp
@@ -208,7 +208,7 @@ void RegisterContextUnwind::InitializeZerothFrame() {
   m_fast_unwind_plan_sp = GetFastUnwindPlanForFrame();
   m_full_unwind_plan_sp = GetFullUnwindPlanForFrame();
 
-  const UnwindPlan::Row *active_row;
+  const UnwindPlan::Row *active_row = nullptr;
   lldb::RegisterKind row_register_kind = eRegisterKindGeneric;
 
   // If we have LanguageRuntime UnwindPlan for this unwind, use those


        


More information about the lldb-commits mailing list