forked from OSchip/llvm-project
Fix two 'dereference of a null pointer' detected by the static analyzer.
llvm-svn: 137394
This commit is contained in:
parent
1978ddf769
commit
d397dc80eb
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue