[clang] [clang-tools-extra] [clang] Don't preserve the typo expr in the recovery expr for invalid VarDecls (PR #90948)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon May 6 11:17:09 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;
----------------
hokein wrote:
Switched to `SmallVector`.
https://github.com/llvm/llvm-project/pull/90948
More information about the cfe-commits
mailing list