[clang] [AST][RecoveryExpr] Fix a crash on c89/c90 invalid InitListExpr (#88008) (PR #88014)
Ding Fei via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 15 09:41:24 PDT 2024
================
@@ -3391,7 +3391,7 @@ class Sema final : public SemaBase {
bool ConstexprSupported, bool CLinkageMayDiffer);
/// type checking declaration initializers (C99 6.7.8)
- bool CheckForConstantInitializer(Expr *e, QualType t);
+ bool CheckForConstantInitializer(Expr *Init, unsigned DiagID);
----------------
danix800 wrote:
Thanks for reviewing, I'll add default `DiagID` to `diag::err_init_element_not_constant`.
https://github.com/llvm/llvm-project/pull/88014
More information about the cfe-commits
mailing list