[Lldb-commits] [lldb] r137394 - /lldb/trunk/source/Symbol/UnwindPlan.cpp

Johnny Chen johnny.chen at apple.com
Thu Aug 11 17:02:24 PDT 2011


Author: johnny
Date: Thu Aug 11 19:02:24 2011
New Revision: 137394

URL: http://llvm.org/viewvc/llvm-project?rev=137394&view=rev
Log:
Fix two 'dereference of a null pointer' detected by the static analyzer.

Modified:
    lldb/trunk/source/Symbol/UnwindPlan.cpp

Modified: lldb/trunk/source/Symbol/UnwindPlan.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/UnwindPlan.cpp?rev=137394&r1=137393&r2=137394&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/UnwindPlan.cpp (original)
+++ lldb/trunk/source/Symbol/UnwindPlan.cpp Thu Aug 11 19:02:24 2011
@@ -106,14 +106,14 @@
                         if (cfa_reg_info)
                             s.Printf (" (%s%+d)",  cfa_reg_info->name, offset); 
                         else
-                            s.Printf (" (reg(%u)%+d)",  cfa_reg_info->name, offset); 
+                            s.Printf (" (reg(%u)%+d)",  cfa_reg, offset); 
                     }
                     else
                     {
                         if (cfa_reg_info)
                             s.Printf ("%s",  cfa_reg_info->name); 
                         else
-                            s.Printf ("reg(%u)",  cfa_reg_info->name); 
+                            s.Printf ("reg(%u)",  cfa_reg); 
                         if (offset != 0)
                             s.Printf ("%+d", offset);
                     }





More information about the lldb-commits mailing list