[llvm-pdbutil] FunctionDumper::dump(PDBSymbolTypeFunctionArg) - fix null dereference warning
Reported in https://www.viva64.com/en/b/0629/ llvm-svn: 359488
This commit is contained in:
parent
f1ec0406f0
commit
1303f90d49
|
@ -228,9 +228,9 @@ void FunctionDumper::dump(const PDBSymbolTypeFunctionArg &Symbol) {
|
|||
uint32_t TypeId = Symbol.getTypeId();
|
||||
auto Type = Symbol.getSession().getSymbolById(TypeId);
|
||||
if (Type)
|
||||
Printer << "<unknown-type>";
|
||||
else
|
||||
Type->dump(*this);
|
||||
else
|
||||
Printer << "<unknown-type>";
|
||||
}
|
||||
|
||||
void FunctionDumper::dump(const PDBSymbolTypeTypedef &Symbol) {
|
||||
|
|
Loading…
Reference in New Issue