[all-commits] [llvm/llvm-project] e9331a: Add missing nullptr checks.

adrian-prantl via All-commits all-commits at lists.llvm.org
Fri Jan 10 08:53:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e9331a56fead1823d528d6412828fb9e16fd62ff
      https://github.com/llvm/llvm-project/commit/e9331a56fead1823d528d6412828fb9e16fd62ff
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2020-01-10 (Fri, 10 Jan 2020)

  Changed paths:
    M lldb/source/Expression/REPL.cpp
    M lldb/source/Expression/UserExpression.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
    M lldb/source/Target/ABI.cpp

  Log Message:
  -----------
  Add missing nullptr checks.

GetPersistentExpressionStateForLanguage() can return a nullptr if it
cannot construct a typesystem. This patch adds missing nullptr checks
at all uses.

Inspired by rdar://problem/58317195

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




More information about the All-commits mailing list