[clang] Set the error-bit for ill-formed semantic InitListExpr.
authorHaojian Wu <hokein.wu@gmail.com>
Tue, 21 Jul 2020 07:39:44 +0000 (09:39 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Tue, 21 Jul 2020 07:39:44 +0000 (09:39 +0200)
commit566b49884d69f88147c1ca18fd4512f73a3c15e3
tree0b7f786b29d39ad66c4a1d8bedd78090ddbc4c27
parent7af852dcbff9a4d5034e6deaadb7b630c548c6fa
[clang] Set the error-bit for ill-formed semantic InitListExpr.

When a semantic checking fails on a syntactic InitListExpr, we will
get an ill-formed semantic InitListExpr (e.g. some inits are nullptr),
using this semantic InitListExpr in clang (without setting the err-bits) is crashy.

Differential Revision: https://reviews.llvm.org/D84140
clang-tools-extra/clangd/unittests/HoverTests.cpp
clang/include/clang/AST/DependenceFlags.h
clang/include/clang/AST/Expr.h
clang/lib/AST/ComputeDependence.cpp
clang/lib/Sema/SemaInit.cpp