From d397dc80ebcfe1471ce99dbab632c358368d0430 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 12 Aug 2011 00:02:24 +0000 Subject: [PATCH] Fix two 'dereference of a null pointer' detected by the static analyzer. llvm-svn: 137394 --- lldb/source/Symbol/UnwindPlan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Symbol/UnwindPlan.cpp b/lldb/source/Symbol/UnwindPlan.cpp index a4651717681e..01cb737b8b2b 100644 --- a/lldb/source/Symbol/UnwindPlan.cpp +++ b/lldb/source/Symbol/UnwindPlan.cpp @@ -106,14 +106,14 @@ UnwindPlan::Row::RegisterLocation::Dump (Stream &s, const UnwindPlan* unwind_pla 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); }