[all-commits] [llvm/llvm-project] 8a9311: Handle invalid types in the nullPointerConstant AS...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Jun 23 04:15:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a9311940a26372dab6706edfd07288667394cfe
      https://github.com/llvm/llvm-project/commit/8a9311940a26372dab6706edfd07288667394cfe
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2020-06-23 (Tue, 23 Jun 2020)

  Changed paths:
    M clang/lib/AST/Expr.cpp
    M clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp

  Log Message:
  -----------
  Handle invalid types in the nullPointerConstant AST matcher

Currently, using the nullPointerConstant AST matcher can lead to
assertions in situations where a node to be matched does not have a
valid type associated with it, such as a ParenListExpr. This patch
addresses that by saying such nodes cannot be a null pointer constant.
This addresses PR46353.




More information about the All-commits mailing list