[all-commits] [llvm/llvm-project] 7af852: [AST][RecoveryExpr] Preserve the invalid "undef_va...

Haojian Wu via All-commits all-commits at lists.llvm.org
Tue Jul 21 00:38:36 PDT 2020


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

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/AST/ast-dump-recovery.cpp
    M clang/test/SemaCXX/typo-correction-delayed.cpp

  Log Message:
  -----------
  [AST][RecoveryExpr] Preserve the invalid "undef_var" initializer.

And don't invalidate the VarDecl if the type is known.

Reviewed By: sammccall

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




More information about the All-commits mailing list