diff options
| author | David Bolvansky <david.bolvansky@gmail.com> | 2019-04-29 23:57:20 +0000 |
|---|---|---|
| committer | David Bolvansky <david.bolvansky@gmail.com> | 2019-04-29 23:57:20 +0000 |
| commit | 1a52eaf7733867f1e92921a057a4cace203050b1 (patch) | |
| tree | d6ee136c0d692667dd1e655c7e851bc260ddfdc6 /llvm/tools | |
| parent | 9a1edd14a2202540ec91e7ed2e187c49e574ea4a (diff) | |
| download | bcm5719-llvm-1a52eaf7733867f1e92921a057a4cace203050b1.tar.gz bcm5719-llvm-1a52eaf7733867f1e92921a057a4cace203050b1.zip | |
[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
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llvm-pdbutil/PrettyFunctionDumper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-pdbutil/PrettyFunctionDumper.cpp b/llvm/tools/llvm-pdbutil/PrettyFunctionDumper.cpp index a5621fb3086..928cdb4d249 100644 --- a/llvm/tools/llvm-pdbutil/PrettyFunctionDumper.cpp +++ b/llvm/tools/llvm-pdbutil/PrettyFunctionDumper.cpp @@ -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>"; |

