[all-commits] [llvm/llvm-project] ec28e4: Add null-pointer checks when accessing a TypeSyste...

Augusto Noronha via All-commits all-commits at lists.llvm.org
Tue May 11 09:20:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ec28e43e01540a57f8822b2efb8638996873f945
      https://github.com/llvm/llvm-project/commit/ec28e43e01540a57f8822b2efb8638996873f945
  Author: Augusto Noronha <augusto2112 at me.com>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
    M lldb/source/Symbol/Type.cpp
    M lldb/unittests/Symbol/TestTypeSystemClang.cpp

  Log Message:
  -----------
  Add null-pointer checks when accessing a TypeSystem's SymbolFile

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.

Reviewed By: aprantl, teemperor

Differential Revision: https://reviews.llvm.org/D101539




More information about the All-commits mailing list