[Lldb-commits] [PATCH] D101539: Add null-pointer checks when accessing a TypeSystem's SymbolFile

Augusto Noronha via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 29 08:13:02 PDT 2021


augusto2112 created this revision.
augusto2112 added reviewers: aprantl, jasonmolenda, jingham.
augusto2112 requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

A type system is not guaranteed to have a symbol file. This patch adds null-pointer checks so we don't crash when trying to access a type system's symbol file.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101539

Files:
  lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
  lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
  lldb/source/Symbol/Type.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101539.341522.patch
Type: text/x-patch
Size: 5318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210429/e1f2412b/attachment.bin>


More information about the lldb-commits mailing list