mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 10:32:48 +02:00
[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
29c5cd408a
commit
62403fa0bb
@ -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
Block a user