[clang] [clang-tools-extra] [clang] Don't preserve the typo expr in the recovery expr for invalid VarDecls (PR #90948)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 3 07:44:13 PDT 2024
================
@@ -13530,9 +13530,12 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, bool DirectInit) {
}
if (VDecl->isInvalidDecl()) {
- CorrectDelayedTyposInExpr(Init, VDecl);
+ ExprResult Res = CorrectDelayedTyposInExpr(Init, VDecl);
+ std::vector<Expr *> SubExprs;
----------------
cor3ntin wrote:
This can be an ArrayRef (or at the minimum a SmallVector)
https://github.com/llvm/llvm-project/pull/90948
More information about the cfe-commits
mailing list