[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:
Simon Pilgrim 2019-04-29 19:40:12 +00:00
parent f1ec0406f0
commit 1303f90d49
1 changed files with 2 additions and 2 deletions

View File

@ -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) {