[clang] [AST][RecoveryExpr] Fix a crash on c89/c90 invalid InitListExpr (#88008) (PR #88014)
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 15 06:20:15 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);
----------------
sam-mccall wrote:
you could consider adding a default for DiagID as there's an "obvious" one used in most places. Up to you.
https://github.com/llvm/llvm-project/pull/88014
More information about the cfe-commits
mailing list