[PATCH] D61279: [PDB] Fixed null pointer dereference

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 14:11:52 PDT 2019


xbolva00 created this revision.
xbolva00 added a reviewer: zturner.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

https://reviews.llvm.org/D61279

Files:
  tools/llvm-pdbutil/PrettyFunctionDumper.cpp


Index: tools/llvm-pdbutil/PrettyFunctionDumper.cpp
===================================================================
--- tools/llvm-pdbutil/PrettyFunctionDumper.cpp
+++ 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)
     Printer << "<unknown-type>";
   else
     Type->dump(*this);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61279.197183.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190429/688e75e1/attachment.bin>


More information about the llvm-commits mailing list