[all-commits] [llvm/llvm-project] fdb695: [AST] Fix potential nullptr dereference in Expr::H...

jkorous-apple via All-commits all-commits at lists.llvm.org
Mon Jul 13 11:09:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fdb69539bcd250f6e4f49197c9b8149a7542e3ff
      https://github.com/llvm/llvm-project/commit/fdb69539bcd250f6e4f49197c9b8149a7542e3ff
  Author: Jan Korous <jkorous at apple.com>
  Date:   2020-07-13 (Mon, 13 Jul 2020)

  Changed paths:
    M clang/include/clang/AST/ExprCXX.h
    M clang/lib/AST/Expr.cpp
    M clang/unittests/AST/CMakeLists.txt
    A clang/unittests/AST/HasSideEffectsTest.cpp

  Log Message:
  -----------
  [AST] Fix potential nullptr dereference in Expr::HasSideEffects

Array returned by LambdaExpr::capture_inits() can contain nullptrs.

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




More information about the All-commits mailing list