Fix two 'dereference of a null pointer' detected by the static analyzer.

llvm-svn: 137394
This commit is contained in:
Johnny Chen 2011-08-12 00:02:24 +00:00
parent 1978ddf769
commit d397dc80eb
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}