[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:
parent
9a1edd14a2
commit
1a52eaf773
|
@ -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>";
|
||||
|
|
Loading…
Reference in New Issue