[PDB] Fixed null pointer dereference

Reviewers: zturner, rnk

Reviewed By: rnk

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D61279

llvm-svn: 359520
This commit is contained in:
David Bolvansky 2019-04-29 23:57:20 +00:00
parent 9a1edd14a2
commit 1a52eaf773
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ void FunctionDumper::dump(const PDBSymbolTypeFunctionArg &Symbol) {
// through to the real thing and dump it.
uint32_t TypeId = Symbol.getTypeId();
auto Type = Symbol.getSession().getSymbolById(TypeId);
if (Type)
if (!Type)
Type->dump(*this);
else
Printer << "<unknown-type>";