[clang] [AST][RecoveryExpr] Fix a crash on c89/c90 invalid InitListExpr (#88008) (PR #88014)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 15 11:29:02 PDT 2024
================
@@ -13805,29 +13804,24 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, bool DirectInit) {
// OpenCL v1.2 s6.5.3: __constant locals must be constant-initialized.
// This is true even in C++ for OpenCL.
} else if (VDecl->getType().getAddressSpace() == LangAS::opencl_constant) {
- CheckForConstantInitializer(Init, DclT);
+ CheckForConstantInitializer(Init);
----------------
AaronBallman wrote:
Should we be passing `DiagID` here?
https://github.com/llvm/llvm-project/pull/88014
More information about the cfe-commits
mailing list