[AST][RecoveryExpr] Support dependent cast-expr in C for error-recovery.
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 8 Oct 2020 08:00:29 +0000 (10:00 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 8 Oct 2020 08:00:29 +0000 (10:00 +0200)
commita96bcfb196740b5be217f6166462ee1206530520
treece38dc9b27007792cd3271a29aeac283c17c2d35
parentba268d2fb09ceabfa03a6499258f973be62d7663
[AST][RecoveryExpr] Support dependent cast-expr in C for error-recovery.

Suppress spurious "typecheck_cond_expect_scalar_operand" diagnostic.

See whole context: https://reviews.llvm.org/D85025

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D84387
clang/lib/Sema/SemaCast.cpp
clang/test/AST/ast-dump-recovery.c
clang/test/Sema/error-dependence.c