[PATCH] D61279: [PDB] Fixed null pointer dereference
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 16:57:33 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL359520: [PDB] Fixed null pointer dereference (authored by xbolva00, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D61279?vs=197183&id=197224#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61279/new/
https://reviews.llvm.org/D61279
Files:
llvm/trunk/tools/llvm-pdbutil/PrettyFunctionDumper.cpp
Index: llvm/trunk/tools/llvm-pdbutil/PrettyFunctionDumper.cpp
===================================================================
--- llvm/trunk/tools/llvm-pdbutil/PrettyFunctionDumper.cpp
+++ llvm/trunk/tools/llvm-pdbutil/PrettyFunctionDumper.cpp
@@ -227,7 +227,7 @@
// 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>";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61279.197224.patch
Type: text/x-patch
Size: 505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190429/349b3516/attachment.bin>
More information about the llvm-commits
mailing list