[all-commits] [llvm/llvm-project] 706a43: [AST][RecoveryExpr] Error-dependent expression sho...

Haojian Wu via All-commits all-commits at lists.llvm.org
Wed Jul 22 01:04:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 706a4353e87b1127446db7daf5e3e95fcb408924
      https://github.com/llvm/llvm-project/commit/706a4353e87b1127446db7daf5e3e95fcb408924
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-07-22 (Wed, 22 Jul 2020)

  Changed paths:
    M clang/lib/AST/Expr.cpp
    M clang/lib/Sema/Sema.cpp
    M clang/test/AST/ast-dump-recovery.c

  Log Message:
  -----------
  [AST][RecoveryExpr] Error-dependent expression should not be treat as a nullptr pointer constant.

If an expression is contains-error and its type is unknown (dependent), we
don't treat it as a null pointer constant.

Fix a recovery-ast crash on C.

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




More information about the All-commits mailing list